NServiceBus
NServiceBus copied to clipboard
Invalid message contracts and saga data results from non-writable properties
trafficstars
Issue transferred from internal repo
When internal or private access modifiers are apply to message contracts of saga data, this can result in problems, e.g. the XML serializer does not serialize non-writable properties.
Implement a way to indicate to users that they may be causing this problem, e.g. by scanning for invalid properties at startup or runtime, or create a roslyn analyzer to highlight such properties in messages and saga data classes.