pjvds / ncqrs

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

Support custom Json settings for JsonEventFormatter #82

Open matt-sullivan opened 13 years ago

matt-sullivan commented 13 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.)