Esempio n. 1
0
 /// <summary>
 /// Enables migration.
 /// </summary>
 /// <remarks>
 /// The operation to create an ASR migration item (enable migration).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 /// <param name='migrationItemName'>
 /// Migration item name.
 /// </param>
 /// <param name='input'>
 /// Enable migration input.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MigrationItem> BeginCreateAsync(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, EnableMigrationInput input, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateWithHttpMessagesAsync(fabricName, protectionContainerName, migrationItemName, input, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Enables migration.
 /// </summary>
 /// <remarks>
 /// The operation to create an ASR migration item (enable migration).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='fabricName'>
 /// Fabric name.
 /// </param>
 /// <param name='protectionContainerName'>
 /// Protection container name.
 /// </param>
 /// <param name='migrationItemName'>
 /// Migration item name.
 /// </param>
 /// <param name='input'>
 /// Enable migration input.
 /// </param>
 public static MigrationItem BeginCreate(this IReplicationMigrationItemsOperations operations, string fabricName, string protectionContainerName, string migrationItemName, EnableMigrationInput input)
 {
     return(operations.BeginCreateAsync(fabricName, protectionContainerName, migrationItemName, input).GetAwaiter().GetResult());
 }