Unable to use Sagas in "unobtrusive mode"
When using conventions to define messages, commands, and events, you get the following exception when trying to mark a saga as complete: Type NServiceBus.Saga.TimeoutMessage was not registered in the serializer. Check that it appears in the list of configured assemblies/types to scan.
This problem goes away if you manually include a rule for the NServiceBus.Saga.TimeoutMessage type in the DefiningMessagesAs() configuration member.
Presumably, clients shouldn't be forced to define a built-in NServiceBus type as a message when using the unobtrusive method of defining messages.
Build: 3.0.1828.0
The idea it that users should either:
- Use the new timeout support in 3.0 (implement ITimeoutState and Implement IHandleTimeouts)
- Use the old one and make sure that timeoutmessage is included in the list of messages just like you do
Note: ITimeoutState also needs to be in the list of messages that the convention finds.
Makes sense?
On Mon, Dec 19, 2011 at 7:57 AM, Dan Bishop [email protected] wrote:
When using conventions to define messages, commands, and events, you get the following exception when trying to mark a saga as complete: Type NServiceBus.Saga.TimeoutMessage was not registered in the serializer. Check that it appears in the list of configured assemblies/types to scan.
This problem goes away if you manually include a rule for the NServiceBus.Saga.TimeoutMessage type in the DefiningMessagesAs() configuration member.
Presumably, clients shouldn't be forced to define a built-in NServiceBus type as a message when using the unobtrusive method of defining messages.
Build: 3.0.1828.0
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/168
That makes sense, but I am getting the error when calling MarkAsComplete() in a saga that doesn't even use any timeouts (v3.0 or v2.6).
If I add any timeouts to this saga, I plan on using the 3.0 approach. Until then, it would be nice to not have to specify the NServiceBus.Saga.TimeoutMessage in my message definition.
Thoughts?
Hmm, we're using a TimeoutMessage by default to tell the timeout manager to "clear all timeouts for this saga". I'll change it to use a control message instead.
Thanks!
On Mon, Dec 19, 2011 at 3:24 PM, Dan Bishop [email protected] wrote:
That makes sense, but I am getting the error when calling MarkAsComplete() in a saga that doesn't even use any timeouts (v3.0 or v2.6).
If I add any timeouts to this saga, I plan on using the 3.0 approach. Until then, it would be nice to not have to specify the NServiceBus.Saga.TimeoutMessage in my message definition.
Thoughts?
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/168#issuecomment-3203640
Cool.
Which NuGet package should I use to get this change (once its been made)? It looks like the NServiceBus-CI package hasn't been updated since Dec 12, despite many additional commits on the develop branch.
Dan
On Mon, Dec 19, 2011 at 9:53 AM, Andreas hlund < [email protected]
wrote:
Hmm, we're using a TimeoutMessage by default to tell the timeout manager to "clear all timeouts for this saga". I'll change it to use a control message instead.
Thanks!
On Mon, Dec 19, 2011 at 3:24 PM, Dan Bishop [email protected] wrote:
That makes sense, but I am getting the error when calling MarkAsComplete() in a saga that doesn't even use any timeouts (v3.0 or v2.6).
If I add any timeouts to this saga, I plan on using the 3.0 approach. Until then, it would be nice to not have to specify the NServiceBus.Saga.TimeoutMessage in my message definition.
Thoughts?
Reply to this email directly or view it on GitHub:
https://github.com/NServiceBus/NServiceBus/issues/168#issuecomment-3203640
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/168#issuecomment-3203977
They are pushed but the fact that we had to adjust the versioning it means that they are sorted in the wrong order:
http://nuget.org/packages/NServiceBus-CI/3.0.0-build1864
The public feed also contains the beta 1 now. We'll probably roll out a new beta every 1-2 weeks from now on
Cheers,
Andreas
On Mon, Dec 19, 2011 at 4:00 PM, Dan Bishop [email protected] wrote:
Cool.
Which NuGet package should I use to get this change (once its been made)? It looks like the NServiceBus-CI package hasn't been updated since Dec 12, despite many additional commits on the develop branch.
Dan
On Mon, Dec 19, 2011 at 9:53 AM, Andreas hlund < [email protected]
wrote:
Hmm, we're using a TimeoutMessage by default to tell the timeout manager to "clear all timeouts for this saga". I'll change it to use a control message instead.
Thanks!
On Mon, Dec 19, 2011 at 3:24 PM, Dan Bishop [email protected] wrote:
That makes sense, but I am getting the error when calling MarkAsComplete() in a saga that doesn't even use any timeouts (v3.0 or v2.6).
If I add any timeouts to this saga, I plan on using the 3.0 approach. Until then, it would be nice to not have to specify the NServiceBus.Saga.TimeoutMessage in my message definition.
Thoughts?
Reply to this email directly or view it on GitHub:
https://github.com/NServiceBus/NServiceBus/issues/168#issuecomment-3203640
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/168#issuecomment-3203977
Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/168#issuecomment-3204057