Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 internal SoaLockReleaser(SoaLockCallback callback, SoaReadWriteLock rwl, bool reader, object state, AsyncResultNoReturn ar)
     : this(callback, rwl, reader, state)
 {
     this.m_AsyncResult = ar;
 }