Beispiel #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// </param>
 /// <param name='moveResourceEnvelope'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task MoveResourcesAsync(this IGlobalResourceGroupsOperations operations, string resourceGroupName, CsmMoveResourceEnvelope moveResourceEnvelope, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.MoveResourcesWithHttpMessagesAsync(resourceGroupName, moveResourceEnvelope, null, cancellationToken).ConfigureAwait(false);
 }
Beispiel #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// </param>
 /// <param name='moveResourceEnvelope'>
 /// </param>
 public static void MoveResources(this IGlobalResourceGroupsOperations operations, string resourceGroupName, CsmMoveResourceEnvelope moveResourceEnvelope)
 {
     Task.Factory.StartNew(s => ((IGlobalResourceGroupsOperations)s).MoveResourcesAsync(resourceGroupName, moveResourceEnvelope), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }