コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: Notify.cs プロジェクト: YHZX2013/exchange_diff
        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);
        }