public
Last active

  • Download Gist
Unobtrusive-config.cs
C#
1 2 3 4 5
Configure.With()
.DefiningCommandsAs(t => t.Namespace != null && t.Namespace.EndsWith("Commands"))
.DefiningEventsAs(t => t.Namespace != null && t.Namespace.EndsWith("Events"))
.DefiningMessagesAs(t => t.Namespace != null && t.Namespace.EndsWith("Messages"))
.DefiningEncryptedPropertiesAs(p => p.Name.StartsWith("Encrypted"));

Hi Andreas,

This should be updated as Namespace.EndsWith("Messages") leads to a namespace clash with NSB itself.

As explined here: http://support.nservicebus.com/customer/portal/articles/910754-definingmessagesas-and-exception-when-starting-endpoint

Cheers,
Andrew.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.