/// <summary> /// Dispose(bool disposing) executes in two distinct scenarios. /// 1) If <paramref name="disposing"/> equals true, the method has been called directly /// or indirectly by a user's code: managed and unmanaged resources can be disposed. /// 2) If <paramref name="disposing"/> equals false, the method has been called by the runtime from inside /// the finalizer and you should not reference other objects: only unmanaged resources can be disposed. /// </summary> /// <param name="disposing">If calling from client code, set to true</param> protected virtual void Dispose(bool disposing) { if (!this._disposed) { if (disposing) { // Dispose managed resources here and free other state (managed objects). WorkSpace = null; FileName = null; if (_provider != null) { _provider.Dispose(); _provider = null; } } // Free your own state (unmanaged objects) and set large fields to null. } _disposed = true; }
public UnpersistMgr(IRootUnpersisterProvider provider) { _provider = provider; }
public WorkSpaceUnpersister(IRootUnpersisterProvider provider) { ElementTickets = new Dictionary<Guid, IElementTicket>(); PipeTickets = new Dictionary<Guid, IPipeTicket>(); _provider = provider; }