internal EndpointAddress GetEndpointAddress(string server) { Uri uri = _serverUriFactory.Create(server); EndpointIdentity identity = EndpointIdentity.CreateDnsIdentity("localhost"); return(new EndpointAddress(uri, identity, new AddressHeaderCollection())); }
public void Start() { Uri address = _serverUriFactory.Create(_server); _host = new ServiceHost(_service, address); Binding binding = _defaultBindingFactory.Create(); _host.AddServiceEndpoint(typeof(IService), binding, ""); _host.Open(); }