Example #1
0
        protected ClientBase(InstanceContext callbackInstance, Binding binding, EndpointAddress remoteAddress)
        {
            if (callbackInstance == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(callbackInstance));
            }

            if (binding == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(binding));
            }

            if (remoteAddress == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(remoteAddress));
            }

            ChannelFactory = new DuplexChannelFactory <TChannel>(callbackInstance, binding, remoteAddress);
            ChannelFactory.TraceOpenAndClose = false;
        }
Example #2
0
 internal virtual void Initialize(InstanceContext instance,
                                  Binding binding, EndpointAddress remoteAddress)
 {
     ChannelFactory = new DuplexChannelFactory <TChannel> (instance, binding, remoteAddress);
 }
Example #3
0
 internal override void Initialize(InstanceContext instance,
                                   string endpointConfigurationName, EndpointAddress remoteAddress)
 {
     ChannelFactory = new DuplexChannelFactory <TChannel> (instance, endpointConfigurationName, remoteAddress);
 }
 public static TChannel CreateChannel(object callbackObject, Binding binding, EndpointAddress endpointAddress, Uri via)
 {
     return(DuplexChannelFactory <TChannel> .CreateChannel(DuplexChannelFactory <TChannel> .GetInstanceContextForObject(callbackObject), binding, endpointAddress, via));
 }
 public static TChannel CreateChannel(object callbackObject, string endpointConfigurationName)
 {
     return(DuplexChannelFactory <TChannel> .CreateChannel(DuplexChannelFactory <TChannel> .GetInstanceContextForObject(callbackObject), endpointConfigurationName));
 }