예제 #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;
 }
예제 #2
0
파일: Endpoint.cs 프로젝트: wsky/top-link
 private EndpointProxy CreateProxy()
 {
     EndpointProxy e = new EndpointProxy(this._handler);
     this._connected.Add(e);
     return e;
 }
예제 #3
0
 public SendCallback(EndpointProxy endpointProxy)
 {
     this.Target = endpointProxy;
     this._handle = new EventWaitHandle(false, EventResetMode.AutoReset);
 }