Пример #1
0
        public DependencyResolver GetDependencyResolver()
        {
            if (_applicationContainerInstance == null)
            {
                _applicationContainerInstance = new DependencyResolver();

                //Comment following line to stop clearing cache for every new run
                //_applicationContainerInstance.ClearInMemoryCache();
            }

            return(_applicationContainerInstance);
        }
Пример #2
0
 protected void Application_End()
 {
     _applicationContainerInstance?.Dispose();
     _applicationContainerInstance = null;
 }