Message IDs

Hey

I have some problems with MessageHierarchy class when doing integration tests with NServiceBus. MH is eagerly checking each and every assembly in the app domain looking for messages and for some reasons it crashes on some non-ES assemblies. I’ve added a temporary workaround to skip loading these assemblies (try-catch-log) but I think there should be a better solution.

How about only loading ES assemblies?

Szymon

Can you send me an example?

I am getting ReflectionTypeLoadException for Raven assembly (internalized in NServiceBus dll):

{“Could not load file or assembly ‘Raven.Abstractions, Version=2.0.3.0, Culture=neutral, PublicKeyToken=37f41c7f99471593’ or one of its dependencies. The system cannot find the file specified.”:“Raven.Abstractions, Version=2.0.3.0, Culture=neutral, PublicKeyToken=37f41c7f99471593”}

I undestand that the MessageHierarchy code was not written with assumption that its running in ES app domain and that the app domain does not contain anything else but this makes integration testing difficult since I am using an in-memory mini node.

Szymon