public DependencyResolver GetDependencyResolver() { if (_applicationContainerInstance == null) { _applicationContainerInstance = new DependencyResolver(); //Comment following line to stop clearing cache for every new run //_applicationContainerInstance.ClearInMemoryCache(); } return(_applicationContainerInstance); }
protected void Application_End() { _applicationContainerInstance?.Dispose(); _applicationContainerInstance = null; }