SALES: 1-800-867-1380

How to: Publish a Service to the Service Bus Registry

Updated: August 25, 2015

The Microsoft.ServiceBus.ServiceRegistrySettings endpoint behavior gives you control over how a given service is published in the service registry. By default, all services are "cloaked" and are not visible in the service registry ATOM feed.

The following table lists the properties that you can set on the ServiceRegistrySettings endpoint:


Microsoft.ServiceBus.ServiceRegistrySettings properties Description


This is the display name for the endpoint and is used as the <title> field for the endpoint in the discovery ATOM feed. By default, the Microsoft.ServiceBus.ServiceRegistrySettings.DisplayName property is set to the last segment of the service URI.


This property is set to the Microsoft.ServiceBus.DiscoveryType.Public or Microsoft.ServiceBus.DiscoveryType.Private values, with the latter being the default. If you set this property to Public, the endpoint is published into the Service Registry ATOM feed.

  1. Create an instance of the ServiceRegistrySettings behavior, using the Public parameter.

    ServiceRegistrySettings serviceRegistrySettings = new ServiceRegistrySettings(DiscoveryType.Public);
    serviceRegistrySettings.DisplayName = "MyService";
  2. Add the description to the associated endpoint.

    foreach (ServiceEndpoint subscriberEndpoint in subscriberHost.Description.Endpoints)

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft