示例#1
0
 // gets a scope contextual representing a locked writer to the dictionary
 // fixme GetScopedWriter? should the dict have a ref onto the scope provider?
 public IDisposable GetWriter(IScopeProvider scopeProvider)
 {
     return(ScopeContextualBase.Get(scopeProvider, _instanceId, scoped => new SnapDictionaryWriter(this, scoped)));
 }
 // gets a scope contextual representing a locked writer to the dictionary
 // the dict is write-locked until the write-lock is released
 //  which happens when it is disposed (non-scoped)
 //  or when the scope context exits (scoped)
 public IDisposable GetScopedWriteLock(IScopeProvider scopeProvider)
 {
     return(ScopeContextualBase.Get(scopeProvider, _instanceId, scoped => new ScopedWriteLock(this, scoped)));
 }
示例#3
0
 // gets a scope contextual representing a locked writer to the dictionary
 // fixme GetScopedWriter? should the dict have a ref onto the scope provider?
 public IDisposable GetWriter(IScopeProvider scopeProvider)
 {
     return(ScopeContextualBase.Get(scopeProvider, _instanceId, scoped => new ContentStoreWriter(this, scoped)));
 }