pjvds / ncqrs

Ncqrs Framework - The CQRS Framework for .NET
Other
541 stars 162 forks source link

Support custom Json settings for JsonEventFormatter #82

Open matt-sullivan opened 12 years ago

matt-sullivan commented 12 years ago

I want to be able to set properties on the JsonSerializer used to save events. (So it can save runtime type information for event properties that are interfaces.)

Changed JsonEventFormatter (and all other places JsonSerializer is used) to ask the environment for an instance of the JsonSerializer.

Changed NcqrsEnvironment to use a factory function so GetDefault() can return a new instance each time (when appropriate.)