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);
        }
Exemplo n.º 2
0
 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;
 }