sbc.Subscribe(subs => subs.LoadFrom(container));
Container.Register(Component.For<A>().LifestyleScoped());using (Container.BeginScope()){ var a1 = Container.Resolve<A>(); var a2 = Container.Resolve<A>(); Assert.AreSame(a1, a2);}--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/I2sU0vow0bMJ.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/masstransit-discuss?hl=en.
To post to this group, send email to masstransit-discuss@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/f087pIxNICMJ.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
-d
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/masstransit-discuss?hl=en.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/JnoDmVLU95gJ.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/JnoDmVLU95gJ.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
-d
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/JnoDmVLU95gJ.
To post to this group, send email to masstransit-discuss@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/masstransit-discuss?hl=en.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/J5bOmOxI7U0J.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
Is there any disadvantage to just amending the existing WindsorConsumerFactory so that this is the same as the StructureMapConsumerFactory?We've implemented this in our project and essentially the only change is to wrap the current code in GetConsumer with a using block to begin a new scope.
using (_container.BeginScope()){// Existing code}Paul.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/tx6UMHAB41IJ.
Can you do a perf analysis of the change? I would be curious to know.Also, maybe you could put together a pull request for us?I have no reason not to.
-d
On Fri, Jun 15, 2012 at 3:54 AM, Paul Cox <paul...@icompile.co.uk> wrote:
Is there any disadvantage to just amending the existing WindsorConsumerFactory so that this is the same as the StructureMapConsumerFactory?We've implemented this in our project and essentially the only change is to wrap the current code in GetConsumer with a using block to begin a new scope.
using (_container.BeginScope()){// Existing code}Paul.--To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/tx6UMHAB41IJ.
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/QSfejLD5llAJ.
For more options, visit https://groups.google.com/groups/opt_out.
Wonderful, thanks Chris!
-d
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/QSfejLD5llAJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.