Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out correct saga data field names #6

Open
mookid8000 opened this issue Mar 23, 2020 · 0 comments
Open

Figure out correct saga data field names #6

mookid8000 opened this issue Mar 23, 2020 · 0 comments

Comments

@mookid8000
Copy link
Member

Because MongoDB's BSON serializer is global, there's a chance (risk!) that any conventions applied at a global level will apply to how sagas are serialized. Also, this might actually be what the user wants 🙂

BUT it poses a problem e.g. when using camel-cased field names in BSON, because Rebus will e.g. be querying for a field named CorrelationId, which is the name in the C# class, but in BSON it's represented as correlationId.

By doing an initial dummy-serialization of an empty instance of the saga data type, it might be possible to deduce the actual resulting field names corresponding to the saga's fields (at least if it's only the casing that's changed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant