protected virtual object Invoke(Delegate d, params object[] args) { Message msg = new Message(d, args); PostMessage(msg); return(msg.Wait()); }
/// <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()); }