Skip to content

Instantly share code, notes, and snippets.

@domgreen
Created April 16, 2011 16:25
Show Gist options
  • Save domgreen/923242 to your computer and use it in GitHub Desktop.
Save domgreen/923242 to your computer and use it in GitHub Desktop.
calling REST from REST
using(new OperationContextScope((IContextChannel)WebRole.serviceManagement))
{
var hostedServices = WebRole.serviceManagement.ListHostedServices(subscriberID);
foreach (HostedService service in hostedServices)
{
Trace.TraceInformation("Hosted Service: {0}", service.ServiceName);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment