コード例 #1
0
 /// <summary>
 /// Creates or updates a peering in the specified express route circuits.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='circuitName'>
 /// The name of the express route circuit.
 /// </param>
 /// <param name='peeringName'>
 /// The name of the peering.
 /// </param>
 /// <param name='peeringParameters'>
 /// Parameters supplied to the create or update express route circuit peering
 /// operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ExpressRouteCircuitPeering> CreateOrUpdateAsync(this IExpressRouteCircuitPeeringsOperations operations, string resourceGroupName, string circuitName, string peeringName, ExpressRouteCircuitPeering peeringParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, circuitName, peeringName, peeringParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// The Put Pering operation creates/updates an peering in the
 /// specified ExpressRouteCircuits
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IExpressRouteCircuitPeeringOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='circuitName'>
 /// Required. The name of the express route circuit.
 /// </param>
 /// <param name='peeringName'>
 /// Required. The name of the peering.
 /// </param>
 /// <param name='peeringParameters'>
 /// Required. Parameters supplied to the create/update
 /// ExpressRouteCircuit Peering operation
 /// </param>
 /// <returns>
 /// Response for Put ExpressRouteCircuit Peering Api service call
 /// </returns>
 public static Task <ExpressRouteCircuitPeeringPutResponse> BeginCreateOrUpdatingAsync(this IExpressRouteCircuitPeeringOperations operations, string resourceGroupName, string circuitName, string peeringName, ExpressRouteCircuitPeering peeringParameters)
 {
     return(operations.BeginCreateOrUpdatingAsync(resourceGroupName, circuitName, peeringName, peeringParameters, CancellationToken.None));
 }
コード例 #3
0
 /// <summary>
 /// Creates or updates a peering in the specified express route circuits.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='circuitName'>
 /// The name of the express route circuit.
 /// </param>
 /// <param name='peeringName'>
 /// The name of the peering.
 /// </param>
 /// <param name='peeringParameters'>
 /// Parameters supplied to the create or update express route circuit peering
 /// operation.
 /// </param>
 public static ExpressRouteCircuitPeering CreateOrUpdate(this IExpressRouteCircuitPeeringsOperations operations, string resourceGroupName, string circuitName, string peeringName, ExpressRouteCircuitPeering peeringParameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, circuitName, peeringName, peeringParameters).GetAwaiter().GetResult());
 }
コード例 #4
0
 /// <summary>
 /// The Put Pering operation creates/updates an peering in the
 /// specified ExpressRouteCircuits
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IExpressRouteCircuitPeeringOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='circuitName'>
 /// Required. The name of the express route circuit.
 /// </param>
 /// <param name='peeringName'>
 /// Required. The name of the peering.
 /// </param>
 /// <param name='peeringParameters'>
 /// Required. Parameters supplied to the create/update
 /// ExpressRouteCircuit Peering operation
 /// </param>
 /// <returns>
 /// Response for Put ExpressRouteCircuit Peering Api service call
 /// </returns>
 public static ExpressRouteCircuitPeeringPutResponse BeginCreateOrUpdating(this IExpressRouteCircuitPeeringOperations operations, string resourceGroupName, string circuitName, string peeringName, ExpressRouteCircuitPeering peeringParameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IExpressRouteCircuitPeeringOperations)s).BeginCreateOrUpdatingAsync(resourceGroupName, circuitName, peeringName, peeringParameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }