Skip to content

Commit

Permalink
AutofacBuilder message module registration fix
Browse files Browse the repository at this point in the history
mattburton committed May 3, 2013

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d05d9f5 commit a374484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rhino.ServiceBus.Autofac/AutofacBuilder.cs
Original file line number Diff line number Diff line change
@@ -62,8 +62,8 @@ public void RegisterDefaultServices(IEnumerable<Assembly> assemblies)
foreach (var module in config.MessageModules)
{
builder.RegisterType(module)
.Named<string>(module.FullName)
.As(typeof(IMessageModule))
.Named<IMessageModule>(module.FullName)
.As<IMessageModule>()
.SingleInstance();
}
builder.Update(container);

0 comments on commit a374484

Please sign in to comment.