protected void Application_End() { _logger.Info("Application Ended. ---> " + HostingEnvironment.ShutdownReason); if (_dependencyEngine != null) { _dependencyEngine.Dispose(); _dependencyEngine = null; } }
public void Dispose() { if (_disposed) { return; } _disposed = true; // contains self var evt = Destroy; evt?.Invoke(this); _engine?.Dispose(); }
public void Dispose() { if (_disposed) { return; } _disposed = true; // contains self _defaultScope.Dispose(); _defaultScope = null !; _engine.Dispose(); _engine = null !; }
protected void Application_End() { _logger.Info("Application Stopped."); _dependencyEngine.Dispose(); }