qphl / ViewModels.Core

A set of .net interfaces for reading/writing CQRS ViewModels in a generic way.
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

AddOrUpdate #10

Open jbradford opened 6 years ago

jbradford commented 6 years ago

It would be nice to have an AddOrUpdate method on IViewModelWriter for cases when you don't know if the ViewModel will exist or not at the time of usage.

It could have a similar signature to https://msdn.microsoft.com/en-us/library/ee378665(v=vs.110).aspx.

jbradford commented 6 years ago

For the InMemory implementation it would be simple as internally it uses a ConcurrentDictionary.