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; }
private EndpointProxy CreateProxy() { EndpointProxy e = new EndpointProxy(this._handler); this._connected.Add(e); return e; }
public SendCallback(EndpointProxy endpointProxy) { this.Target = endpointProxy; this._handle = new EventWaitHandle(false, EventResetMode.AutoReset); }