Пример #1
0
 public void Enqueue(Event evt)
 {
     Monitor.Enter(mLock);
       try {
     mQueue.Enqueue(evt);
     Monitor.PulseAll(mLock);
       } finally {
     Monitor.Exit(mLock);
       }
 }
Пример #2
0
 public void TestDefaults()
 {
     var evt = new Event("abc");
       Assert.That(evt.Name, Is.EqualTo("abc"));
 }