Exemple #1
0
 /// <summary>
 /// Create or update an event subscription of a partner topic.
 /// </summary>
 /// <remarks>
 /// Asynchronously creates or updates an event subscription of a partner topic
 /// with the specified parameters. Existing event subscriptions will be updated
 /// with this API.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='partnerTopicName'>
 /// Name of the partner topic.
 /// </param>
 /// <param name='eventSubscriptionName'>
 /// Name of the event subscription to be created. Event subscription names must
 /// be between 3 and 100 characters in length and use alphanumeric letters
 /// only.
 /// </param>
 /// <param name='eventSubscriptionInfo'>
 /// Event subscription properties containing the destination and filter
 /// information.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EventSubscription> BeginCreateOrUpdateAsync(this IPartnerTopicEventSubscriptionsOperations operations, string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, partnerTopicName, eventSubscriptionName, eventSubscriptionInfo, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }