示例#1
0
        void ICommunicationObject.Open(TimeSpan timeout)
        {
            TimeoutHelper timeoutHelper = new TimeoutHelper(timeout);

            ChannelFactory.Open(timeoutHelper.RemainingTime());
            InnerChannel.Open(timeoutHelper.RemainingTime());
        }
示例#2
0
        void ICommunicationObject.Open(TimeSpan timeout)
        {
            TimeoutHelper timeoutHelper = new TimeoutHelper(timeout);

            if (!_useCachedFactory)
            {
                GetChannelFactory().Open(timeoutHelper.RemainingTime());
            }

            InnerChannel.Open(timeoutHelper.RemainingTime());
        }
        public void Open(TimeSpan timeout)
        {
            WcfClientEventSource.Log.ChannelCalled(GetType().FullName, nameof(Open));
            HookChannelEvents();
            var telemetry = this.StartOpenTelemetry(nameof(Open));

            try
            {
                InnerChannel.Open(timeout);
                this.StopOpenTelemetry(telemetry, null, nameof(Open));
            } catch (Exception ex)
            {
                this.StopOpenTelemetry(telemetry, ex, nameof(Open));
                throw;
            }
        }
示例#4
0
文件: ClientBase.cs 项目: mdae/MonoRT
 void ICommunicationObject.Open(TimeSpan timeout)
 {
     InnerChannel.Open(timeout);
 }
示例#5
0
文件: ClientBase.cs 项目: mdae/MonoRT
 public void Open()
 {
     InnerChannel.Open();
 }
示例#6
0
 public void Open(TimeSpan timeout)
 {
     InnerChannel.Open(timeout);
 }
示例#7
0
        // explicit interface impl.

        void ICommunicationObject.Open()
        {
            InnerChannel.Open();
        }