public virtual void Dispose() { if (IocContainer != null) { IocContainer.Dispose(); } }
public void Dispose() { if (container != null) { container.Dispose(); } }
/// <summary> /// Releases resources held by the object. /// </summary> protected override void OnDispose(bool disposing) { if (disposing && IocContainer != null) { IocContainer.Dispose(); } base.OnDispose(disposing); }
public void Dispose() { //TODO: Call shutdown of modules! if (IocContainer != null) { IocContainer.Dispose(); } }
public void Dispose() { if (mine == null) { return; } if (mine != container) { throw new InvalidOperationException("Container changed! Possible multi-thread error, or disposing order mistake!"); } mine.Dispose(); container = old; mine = null; }
public void Dispose() { _container.Dispose(); }
/// <summary> /// 释放容器 /// </summary> public void Dispose() { IocContainer.Dispose(); }
public void MyTestCleanup() { // remove the registrations, and cache values iocContainer.Dispose(); }
public void MyTestCleanup() { iocContainer.Dispose(); }
public static void Cleanup() { IocContainer.Dispose(); }
void Application_End() { IocContainer.Dispose(); }