diff --git a/src/Abstractions/ServiceImplementations/ServiceImplementation.cs b/src/Abstractions/ServiceImplementations/ServiceImplementation.cs index 626f8ab..4eed44a 100644 --- a/src/Abstractions/ServiceImplementations/ServiceImplementation.cs +++ b/src/Abstractions/ServiceImplementations/ServiceImplementation.cs @@ -18,19 +18,10 @@ public class ServiceImplementation : IDisposable /// public IServiceProvider ServiceProvider { get; set; } - protected virtual void Dispose(bool disposing) - { - if (disposing) - { - if(ServiceProvider is IDisposable disposable) - disposable.Dispose(); - } - } - public void Dispose() { - Dispose(true); - GC.SuppressFinalize(this); + if (ServiceProvider is IDisposable disposable) + disposable.Dispose(); } } } \ No newline at end of file