Permalink
Browse files

Message consumers under Windsor are now resolved with the default rel…

…ease policy of the container. This enables their proper decommission when using LifecycledComponentsReleasePolicy.
  • Loading branch information...
1 parent 7934913 commit da3afc6bd60e95c1d66569f720033990fa33df4b @jberezanski jberezanski committed with CoreyKaylor Mar 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Rhino.ServiceBus.Castle/CastleServiceLocator.cs
@@ -40,7 +40,7 @@ public IEnumerable<T> ResolveAll<T>()
public IEnumerable<IHandler> GetAllHandlersFor(Type type)
{
return (from h in container.Kernel.GetAssignableHandlers(type)
- select (IHandler)new DefaultHandler(null, h.ComponentModel.Implementation, () => h.Resolve(CreationContext.CreateEmpty())));
+ select (IHandler)new DefaultHandler(null, h.ComponentModel.Implementation, () => h.Resolve(new CreationContext(h, container.Kernel.ReleasePolicy, type, null, null, null))));
}
public void Release(object item)

0 comments on commit da3afc6

Please sign in to comment.