public static DiscoverableServiceHost CreateDiscoverableHost(Type serviceType, Uri baseAddress, Uri scope = null) { DiscoverableServiceHost host = new DiscoverableServiceHost(serviceType); host.EnableServiceBusDiscovery(scope, true, new Uri[] { baseAddress }); return(host); }
public static DiscoverableServiceHost CreateDiscoverableHost(Type serviceType,Uri baseAddress,Uri scope = null) { DiscoverableServiceHost host = new DiscoverableServiceHost(serviceType); host.EnableServiceBusDiscovery(scope,true,new Uri[]{baseAddress}); return host; }