Disregard this, it was a stupid mistake from my side where I after an
hour of debugginf went back to the basics and saw that I had forgot to
make the Consumer public. Silly me!

On Sep 13, 8:26 am, Kenny Eliasson <[email protected]> wrote:
> Hi there.
>
> Been testing out RSB together with the StructureMap plugin. All seems
> to work except it doesn't map the consumers so I have to do it by
> hand.
>
> Been looking at the code and looking the tests in your GitHub repo. Im
> currently executing this code to try and add the consumers.
>
>     public class Bootstrapper : StructureMapBootStrapper
>     {
>         protected override void ConfigureContainer()
>         {
>             base.ConfigureContainer();
>
>             ObjectFactory.Configure(x => {
>                 //If I use this line it works
>                 //x.For<PingConsumer>().Use<PingConsumer>();
>
>                 //Using any of these configurations doesnt wire up the
> consumers
>                 x.Scan(s =>  {
>                     s.AssemblyContainingType(typeof(PingConsumer));
>                     s.WithDefaultConventions();
>
> s.ConnectImplementationsToTypesClosing(typeof(ConsumerOf<>));
>                     s.AddAllTypesOf<IMessageConsumer>().NameBy(t =>
> t.FullName);
>                 });
>             });
>
>         }
>
> Any ideas of how I should auto register the consumers?

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to