public static Request Open(TimeSpan openTimeout, TimeSpan sendTimeout, TimeSpan receiveTimeout) { Request request = new Request(); EndpointAddress remoteAddress = new EndpointAddress("net.pipe://localhost/Microsoft.Exchange.ThirdPartyReplication.RequestService"); request.m_wcfClient = new InternalRequestClient(ClientServices.SetupBinding(openTimeout, sendTimeout, receiveTimeout), remoteAddress); return(request); }
public static Notify Open(TimeSpan openTimeout, TimeSpan sendTimeout, TimeSpan receiveTimeout) { Notify notify = new Notify(); EndpointAddress remoteAddress = new EndpointAddress("net.pipe://localhost/Microsoft.Exchange.ThirdPartyReplication.NotifyService"); notify.m_wcfClient = new InternalNotifyClient(ClientServices.SetupBinding(openTimeout, sendTimeout, receiveTimeout), remoteAddress); ExTraceGlobals.ThirdPartyClientTracer.TraceDebug((long)notify.GetHashCode(), "Notify.Open successful"); return(notify); }