NServiceBus icon indicating copy to clipboard operation
NServiceBus copied to clipboard

Invalid message contracts and saga data results from non-writable properties

Open helenktsai opened this issue 3 years ago • 0 comments
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.

helenktsai avatar Jul 26 '22 21:07 helenktsai