public IAsyncResult BeginReadFromResource(SoaLockCallback callback, object state, AsyncCallback asyncCallback, object asyncState)
 {
     AsyncResultNoReturn asyncResultNoReturn = new AsyncResultNoReturn(asyncCallback, asyncState);
     this.ReadFromResource(new SoaLockReleaser(callback, this, true, state, asyncResultNoReturn));
     return asyncResultNoReturn;
 }
 public IAsyncResult BeginWriteToResource(SoaLockCallback callback, object state, AsyncCallback asyncCallback, object asyncState)
 {
     AsyncResultNoReturn asyncResultNoReturn = new AsyncResultNoReturn(asyncCallback, asyncState);
     this.WriteToResource(new SoaLockReleaser(callback, this, false, state, asyncResultNoReturn));
     return asyncResultNoReturn;
 }
Exemple #3
0
 internal SoaLockReleaser(SoaLockCallback callback, SoaReadWriteLock rwl, bool reader, object state, AsyncResultNoReturn ar)
     : this(callback, rwl, reader, state)
 {
     this.m_AsyncResult = ar;
 }