public static HostedService GetHostedService(this IServiceManagement proxy, string subscriptionId, string serviceName) { try { return(proxy.EndGetHostedService(proxy.BeginGetHostedService(subscriptionId, serviceName, null, null))); } catch (EndpointNotFoundException) { throw new EndpointNotFoundException(Resources.ServiceDoesNotExist); } }
public static HostedService GetHostedService(this IServiceManagement proxy, string subscriptionId, string serviceName) { return(proxy.EndGetHostedService(proxy.BeginGetHostedService(subscriptionId, serviceName, null, null))); }