Ejemplo n.º 1
0
 protected void OperationCreatedHandler(object cimSession, OperationEventArgs actionArgs)
 {
     DebugHelper.WriteLogEx();
     lock (this.myLock)
     {
         CimAsyncOperation cimAsyncOperation = this;
         cimAsyncOperation.operationCount = cimAsyncOperation.operationCount + 1;
     }
 }
Ejemplo n.º 2
0
 protected void OperationDeletedHandler(object cimSession, OperationEventArgs actionArgs)
 {
     DebugHelper.WriteLogEx();
     lock (this.myLock)
     {
         CimAsyncOperation cimAsyncOperation = this;
         cimAsyncOperation.operationCount = cimAsyncOperation.operationCount - 1;
         if (this.operationCount == 0)
         {
             this.moreActionEvent.Set();
         }
     }
 }