Skip to content

Commit

Permalink
Fixes #39
Browse files Browse the repository at this point in the history
  • Loading branch information
ENikS committed Mar 18, 2019
1 parent 1ef2c2b commit 45f6dba
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/ServiceProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal ServiceProvider(IUnityContainer container)
{
_container = container;
_container.RegisterInstance<IServiceScope>(this, new ExternallyControlledLifetimeManager());
_container.RegisterInstance<IServiceProvider>(this, new ExternallyControlledLifetimeManager());
_container.RegisterInstance<IServiceProvider>(this, new ContainerControlledLifetimeManager());
_container.RegisterInstance<IServiceScopeFactory>(this, new ExternallyControlledLifetimeManager());
}

Expand Down Expand Up @@ -73,12 +73,6 @@ public static explicit operator UnityContainer(ServiceProvider c)
#region Disposable

public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}

private void Dispose(bool _)
{
IDisposable disposable = _container;
_container = null;
Expand Down

0 comments on commit 45f6dba

Please sign in to comment.