public RpcEndpointDispatcher(object singletonService, ServiceEndpoint endpoint, bool duplex = false, SynchronizationContext syncContext = null)
     : base(singletonService, endpoint)
 {
     _duplex = duplex;
     _syncContext = syncContext;
 }
示例#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;
 }
示例#3
0
 protected EndpointDispatcher(object singletonService, ServiceEndpoint endpoint)
 {
     _endpoint = endpoint;
     _singletonService = singletonService;
     _operations = DispatchTableFactory.GetOperations(endpoint._contractType);
 }
示例#4
0
 public ChannelFactory(Binding binding, Type typeOfService, bool callback = false)
 {
     _callback = callback;
     _endpoint = new ServiceEndpoint(binding, typeOfService, null, Guid.Empty);
 }