Ejemplo n.º 1
0
 public NotifierClient(Binding binding, EndpointAddress endpoint, INotifierServiceCallback callback)
     : base(binding, endpoint, callback)
 {
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates and configures the ServiceClient and opens the connection
        /// to the API via its Channel.
        /// </summary>
        protected DuplexServiceClient(Binding binding, EndpointAddress endpoint, INotifierServiceCallback callback)
        {
            this.ServiceChannel = DuplexChannelFactory <T> .CreateChannel(new InstanceContext(callback), binding, endpoint);

            (this.ServiceChannel as ICommunicationObject).Open();
        }