Esempio n. 1
0
 /// <summary>
 /// Increment activity count. When count equals 0, indicator will be activated.
 /// </summary>
 void IActivityManager.Attach()
 {
     lock (thisObject)
     {
         if (count == 0)
         {
             indicator.Activate();
         }
         Interlocked.Increment(ref count);
     }
 }