Example #1
0
        public static HostedServiceList ListHostedServicesWithDetails(this IServiceManagement proxy, string subscriptionId, ref string continuationToken)
        {
            if (continuationToken != null)
            {
                WebOperationContext.Current.OutgoingRequest.Headers["x-ms-continuation-token"] = continuationToken;
            }
            else
            {
                WebOperationContext.Current.OutgoingRequest.Headers["x-ms-continuation-token"] = "All";
            }

            HostedServiceList hsList = proxy.EndListHostedServices(proxy.BeginListHostedServices(subscriptionId, null, null));
            continuationToken = WebOperationContext.Current.IncomingResponse.Headers["x-ms-continuation-token"];

            return hsList;
        }
Example #2
0
 public static HostedServiceList ListHostedServices(this IServiceManagement proxy, string subscriptionId)
 {
     return proxy.EndListHostedServices(proxy.BeginListHostedServices(subscriptionId, null, null));
 }