public RpcEndpointDispatcher(object singletonService, ServiceEndpoint endpoint, bool duplex = false, SynchronizationContext syncContext = null)
     : base(singletonService, endpoint)
 {
     _duplex = duplex;
     _syncContext = syncContext;
 }
Example #2
0
 protected ServiceEndpoint CreateEndpoint(Type contractType, Binding binding, string address, Guid uuid)
 {
     var uri = new Uri(address, UriKind.RelativeOrAbsolute);
     if (!uri.IsAbsoluteUri)
     {
         address = _baseAddress + address;
     }
     var endpoint = new ServiceEndpoint(binding, contractType, address, uuid);
     return endpoint;
 }
Example #3
0
 protected EndpointDispatcher(object singletonService, ServiceEndpoint endpoint)
 {
     _endpoint = endpoint;
     _singletonService = singletonService;
     _operations = DispatchTableFactory.GetOperations(endpoint._contractType);
 }
Example #4
0
 public ChannelFactory(Binding binding, Type typeOfService, bool callback = false)
 {
     _callback = callback;
     _endpoint = new ServiceEndpoint(binding, typeOfService, null, Guid.Empty);
 }