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