Example #1
0
 protected ThreadlessClient(
     EndpointAddress address,
     Type serviceType,
     ThreadlessBinding binding,
     ChannelFactory <TServiceInterface> channelFactory)
 {
     serviceHost = new ServiceHost(serviceType);
     serviceHost.AddServiceEndpoint(typeof(TServiceInterface), binding, address.Uri);
     serviceHost.Open();
     this.channelFactory = channelFactory;
     Client = channelFactory.CreateChannel();
 }
 public ThreadlessDuplexClient(EndpointAddress address, object callback, ThreadlessBinding binding)
     : base(address, typeof(TService), callback, binding)
 {
 }
Example #3
0
 public ThreadlessDuplexClient(EndpointAddress address, Type serviceType, object callback, ThreadlessBinding binding)
     : base(
         address,
         serviceType,
         binding,
         new DuplexChannelFactory <TServiceInterface>(new InstanceContext(callback), binding, address))
 {
 }
Example #4
0
 public ThreadlessClient(EndpointAddress address, Type serviceType, ThreadlessBinding binding)
     : this(address, serviceType, binding, new ChannelFactory <TServiceInterface>(binding, address))
 {
 }
Example #5
0
 public ThreadlessClient(EndpointAddress address, ThreadlessBinding binding)
     : base(address, typeof(TService), binding)
 {
 }