This commit is contained in:
kay.one 2013-05-11 13:06:57 -07:00
commit 57e78e31fe
6 changed files with 71 additions and 35 deletions

View file

@ -51,7 +51,10 @@ namespace NzbDrone.Common.Composition
public void Register<TService>(Func<IContainer, TService> factory) where TService : class
{
_container.Register((c, n) => factory(this));
_container.Register((c, n) =>
{
return factory(this);
});
}
public void RegisterSingleton<TService, TImplementation>()