Beispiel #1
0
        protected virtual object Invoke(Delegate d, params object[] args)
        {
            Message msg = new Message(d, args);

            PostMessage(msg);
            return(msg.Wait());
        }
Beispiel #2
0
 /// <summary>
 /// Waits untill invocation has finished
 /// </summary>
 /// <returns>return value of the invoke</returns>
 /// <exception cref="Exception">This method takes the exception specification of the invoked call</exception>
 public object GetResult()
 {
     return(msg.Wait());
 }