예제 #1
0
        protected void Application_End()
        {
            _logger.Info("Application Ended. ---> " + HostingEnvironment.ShutdownReason);

            if (_dependencyEngine != null)
            {
                _dependencyEngine.Dispose();
                _dependencyEngine = null;
            }
        }
예제 #2
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }
            _disposed = true; // contains self

            var evt = Destroy;

            evt?.Invoke(this);

            _engine?.Dispose();
        }
예제 #3
0
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            _disposed = true; // contains self

            _defaultScope.Dispose();
            _defaultScope = null !;

            _engine.Dispose();
            _engine = null !;
        }
예제 #4
0
 protected void Application_End()
 {
     _logger.Info("Application Stopped.");
     _dependencyEngine.Dispose();
 }