Beispiel #1
0
 internal IDictionary<string, object> SendAndWait(EndpointProxy e
     , IChannelSender sender
     , Message message
     , int timeout)
 {
     SendCallback callback = new SendCallback(e);
     this.Send(message, sender, callback);
     callback.WaitReturn(timeout);
     if (callback.Error != null)
         throw callback.Error;
     return callback.Return;
 }
Beispiel #2
0
 private EndpointProxy CreateProxy()
 {
     EndpointProxy e = new EndpointProxy(this._handler);
     this._connected.Add(e);
     return e;
 }
Beispiel #3
0
 public SendCallback(EndpointProxy endpointProxy)
 {
     this.Target = endpointProxy;
     this._handle = new EventWaitHandle(false, EventResetMode.AutoReset);
 }