Esempio n. 1
0
        public void Wait()
        {
            this.waiting = true;
            TimeSpan timeSpan = TimeSpan.FromMilliseconds(this.Timeout);

            while (!this.doneWaiting && (this.Timeout < 0 || (DateTime.Now - this.StartTime) < timeSpan))
            {
                ;
            }

            GenericAction.RemoveGenericEventHandler(this.Subject, this.EventInfo, this.CallbackWrap);
        }
Esempio n. 2
0
 public override void RemoveEventHandler()
 {
     GenericAction.RemoveGenericEventHandler(this.Subject, this.EventInfo, this.OnEvent);
 }