コード例 #1
0
ファイル: LogManager.cs プロジェクト: zmyer/service-fabric
 LogManager()
 {
     _Handles      = new Dictionary <long, WeakReference <Handle> >();
     _Lock         = new AutoResetEventAsync();
     _Logs         = new Dictionary <Guid, PhysicalLog>();
     _NextHandleId = 0;
 }
コード例 #2
0
 PhysicalLog(Guid id, IPhysicalLogContainer underlyingContainer)
 {
     this._PhysicalLogLock       = new AutoResetEventAsync();
     this._PhysicalLogHandles    = new Dictionary <long, WeakReference <Handle> >();
     this._LogicalLogs           = new Dictionary <Guid, LogicalLogInfo>();
     this._Container             = underlyingContainer;
     this._NextPhysicalLogHandle = 0;
     this._Id    = id;
     this.IsOpen = false;
 }