public static Response <NameAvailability> CheckCommunicationNameAvailability(this SubscriptionResource subscriptionResource, NameAvailabilityContent content = null, CancellationToken cancellationToken = default) { return(GetExtensionClient(subscriptionResource).CheckCommunicationNameAvailability(content, cancellationToken)); }
public static async Task <Response <NameAvailability> > CheckCommunicationNameAvailabilityAsync(this SubscriptionResource subscriptionResource, NameAvailabilityContent content = null, CancellationToken cancellationToken = default) { return(await GetExtensionClient(subscriptionResource).CheckCommunicationNameAvailabilityAsync(content, cancellationToken).ConfigureAwait(false)); }
public static Response <NameAvailability> CheckWebPubSubNameAvailability(this SubscriptionResource subscriptionResource, string location, NameAvailabilityContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(location, nameof(location)); Argument.AssertNotNull(content, nameof(content)); return(GetExtensionClient(subscriptionResource).CheckWebPubSubNameAvailability(location, content, cancellationToken)); }
public virtual Response <NameAvailability> CheckCommunicationNameAvailability(NameAvailabilityContent content = null, CancellationToken cancellationToken = default) { using var scope = CommunicationServiceClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.CheckCommunicationNameAvailability"); scope.Start(); try { var response = CommunicationServiceRestClient.CheckNameAvailability(Id.SubscriptionId, content, cancellationToken); return(response); } catch (Exception e) { scope.Failed(e); throw; } }
public virtual Response <NameAvailability> CheckWebPubSubNameAvailability(string location, NameAvailabilityContent content, CancellationToken cancellationToken = default) { using var scope = WebPubSubClientDiagnostics.CreateScope("SubscriptionResourceExtensionClient.CheckWebPubSubNameAvailability"); scope.Start(); try { var response = WebPubSubRestClient.CheckNameAvailability(Id.SubscriptionId, location, content, cancellationToken); return(response); } catch (Exception e) { scope.Failed(e); throw; } }