BoC.Web.Mvc.IoC.BoCDependencyResolver.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            if (_subscription != null && _eventAggregator != null)
            {
                _eventAggregator.GetEvent<WebRequestEndEvent>().Unsubscribe(_subscription);
            }
            _subscription = null;
            //I think it's best not to dispose the outer IDependencyResolver here, we have Dispose(true) to force anyway
        }

Same methods

BoCDependencyResolver::Dispose ( bool disposing ) : void