Esempio n. 1
0
 /// <summary>
 /// Create a partner destination.
 /// </summary>
 /// <remarks>
 /// Asynchronously creates a new partner destination with the specified
 /// parameters.
 /// </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='partnerDestinationName'>
 /// Name of the partner destination.
 /// </param>
 /// <param name='partnerDestination'>
 /// Partner destination create information.
 /// </param>
 public static PartnerDestination CreateOrUpdate(this IPartnerDestinationsOperations operations, string resourceGroupName, string partnerDestinationName, PartnerDestination partnerDestination)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, partnerDestinationName, partnerDestination).GetAwaiter().GetResult());
 }
Esempio n. 2
0
 /// <summary>
 /// Create a partner destination.
 /// </summary>
 /// <remarks>
 /// Asynchronously creates a new partner destination with the specified
 /// parameters.
 /// </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='partnerDestinationName'>
 /// Name of the partner destination.
 /// </param>
 /// <param name='partnerDestination'>
 /// Partner destination create information.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PartnerDestination> CreateOrUpdateAsync(this IPartnerDestinationsOperations operations, string resourceGroupName, string partnerDestinationName, PartnerDestination partnerDestination, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, partnerDestinationName, partnerDestination, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }