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);
        }
Esempio 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;
 }