Ejemplo n.º 1
0
 /// <summary>
 /// Creates a vCenter
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.SiteRecovery.IVCenterOperations.
 /// </param>
 /// <param name='fabricName'>
 /// Required. Fabric Name.
 /// </param>
 /// <param name='vCenterName'>
 /// Required. vCenter Name.
 /// </param>
 /// <param name='input'>
 /// Required. Input to create vCenter.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static Task <LongRunningOperationResponse> BeginCreatingAsync(this IVCenterOperations operations, string fabricName, string vCenterName, CreateVCenterInput input, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.BeginCreatingAsync(fabricName, vCenterName, input, customRequestHeaders, CancellationToken.None));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a vCenter
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.SiteRecovery.IVCenterOperations.
 /// </param>
 /// <param name='fabricName'>
 /// Required. Fabric Name.
 /// </param>
 /// <param name='vCenterName'>
 /// Required. vCenter Name.
 /// </param>
 /// <param name='input'>
 /// Required. Input to create vCenter.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static LongRunningOperationResponse BeginCreating(this IVCenterOperations operations, string fabricName, string vCenterName, CreateVCenterInput input, CustomRequestHeaders customRequestHeaders)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IVCenterOperations)s).BeginCreatingAsync(fabricName, vCenterName, input, customRequestHeaders);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }