Beispiel #1
0
            public WaitForSingleEventThunk(Squared.Util.Bind.BoundMember <EventHandler> evt)
            {
                Event   = evt;
                Handler = OnEvent;

                Event.Add(Handler);
                Future.RegisterOnDispose(OnDispose);
            }
Beispiel #2
0
 public static SignalFuture WaitForSingleEvent(Squared.Util.Bind.BoundMember <EventHandler> evt)
 {
     return((new WaitForSingleEventThunk(evt)).Future);
 }
Beispiel #3
0
 public static Future <TEventArgs> WaitForSingleEvent <TEventArgs>
     (Squared.Util.Bind.BoundMember <EventHandler <TEventArgs> > evt)
     where TEventArgs : System.EventArgs
 {
     return((new WaitForSingleEventThunk <TEventArgs>(evt)).Future);
 }