protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { ICallContext callContext = DependencyManager.Instance().Resolve <ICallContext>(); callContext.Remove(AppKeyConst.UoW); context.Dispose(); context = null; } } this.disposed = true; }