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); }
public override void RemoveEventHandler() { GenericAction.RemoveGenericEventHandler(this.Subject, this.EventInfo, this.OnEvent); }