Question

I have been attempting to configure masstransit in my Web Application's UnityConfig.cs file with no success. I have attempted several methods and read many articles, but still have not gotten it to work. I looked at the example that is on the MassTransit site but can not seem to get it to work. The first issue that I am having is the I cannot figure out what assembly the "TypeFinder" class lives in, nor can I find the "FindTypesWhichImplement" method.

Is the example on the masstransit page suppose to work or is it more of "This is what it may look like" example.

Was it helpful?

Solution

The Starbucks sample (https://github.com/MassTransit/RabbitMQ-Samples/tree/master/Starbucks) has Winsor, StructureMap, and NInject but no Unity. I don't think any of the core team uses Unity.

Though I'd start with making sure you have Unity integration NuGet package included. Check your namespaces (using MassTransit;). It's all extension methods, and should be in the MassTransit namespace. We might have misplaced a type in the wrong namespace somewhere but my quick check of the source doesn't show any.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top