本文整理汇总了C#中this.BeginCreatingAsync方法的典型用法代码示例。如果您正苦于以下问题:C# this.BeginCreatingAsync方法的具体用法?C# this.BeginCreatingAsync怎么用?C# this.BeginCreatingAsync使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类this
的用法示例。
在下文中一共展示了this.BeginCreatingAsync方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BeginCreating
/// <summary>
/// The Add Service Certificate operation adds a certificate to a
/// hosted service. The Add Service Certificate operation is an
/// asynchronous operation. To determine whether the management
/// service has finished processing the request, call Get Operation
/// Status. (see
/// http://msdn.microsoft.com/en-us/library/windowsazure/ee460817.aspx
/// for more information)
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Compute.IServiceCertificateOperations.
/// </param>
/// <param name='serviceName'>
/// The DNS prefix name of your service.
/// </param>
/// <param name='parameters'>
/// Parameters supplied to the Create Service Certificate operation.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
public static OperationResponse BeginCreating(this IServiceCertificateOperations operations, string serviceName, ServiceCertificateCreateParameters parameters)
{
try
{
return operations.BeginCreatingAsync(serviceName, parameters).Result;
}
catch (AggregateException ex)
{
if (ex.InnerExceptions.Count > 1)
{
throw;
}
else
{
throw ex.InnerException;
}
}
}
示例2: BeginCreating
/// <summary>
/// Preview Only. The Create Reserved IP operation creates a reserved
/// IP from your the subscription.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Network.IReservedIPOperations.
/// </param>
/// <param name='parameters'>
/// Parameters supplied to the Create Virtual Machine Image operation.
/// </param>
/// <returns>
/// The response body contains the status of the specified asynchronous
/// operation, indicating whether it has succeeded, is inprogress, or
/// has failed. Note that this status is distinct from the HTTP status
/// code returned for the Get Operation Status operation itself. If
/// the asynchronous operation succeeded, the response body includes
/// the HTTP status code for the successful request. If the
/// asynchronous operation failed, the response body includes the HTTP
/// status code for the failed request, and also includes error
/// information regarding the failure.
/// </returns>
public static VirtualNetworkOperationStatusResponse BeginCreating(this IReservedIPOperations operations, NetworkReservedIPCreateParameters parameters)
{
try
{
return operations.BeginCreatingAsync(parameters).Result;
}
catch (AggregateException ex)
{
if (ex.InnerExceptions.Count > 1)
{
throw;
}
else
{
throw ex.InnerException;
}
}
}
示例3: BeginCreating
/// <summary>
/// The Create Storage Account operation creates a new storage account
/// in Windows Azure. (see
/// http://msdn.microsoft.com/en-us/library/windowsazure/hh264518.aspx
/// for more information)
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.
/// </param>
/// <param name='parameters'>
/// Parameters supplied to the Create Storage Account operation.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
public static OperationResponse BeginCreating(this IStorageAccountOperations operations, StorageAccountCreateParameters parameters)
{
try
{
return operations.BeginCreatingAsync(parameters).Result;
}
catch (AggregateException ex)
{
if (ex.InnerExceptions.Count > 1)
{
throw;
}
else
{
throw ex.InnerException;
}
}
}
示例4: BeginCreating
/// <summary>
/// Create a job collection.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Scheduler.IJobCollectionOperations.
/// </param>
/// <param name='cloudServiceName'>
/// The name of the cloud service containing the job collection.
/// </param>
/// <param name='jobCollectionName'>
/// The name of the job collection to create.
/// </param>
/// <param name='parameters'>
/// Parameters supplied to the Create Job Collection operation.
/// </param>
/// <returns>
/// The Create Job Collection operation response.
/// </returns>
public static JobCollectionCreateResponse BeginCreating(this IJobCollectionOperations operations, string cloudServiceName, string jobCollectionName, JobCollectionCreateParameters parameters)
{
try
{
return operations.BeginCreatingAsync(cloudServiceName, jobCollectionName, parameters).Result;
}
catch (AggregateException ex)
{
if (ex.InnerExceptions.Count > 1)
{
throw;
}
else
{
throw ex.InnerException;
}
}
}
示例5: BeginCreating
/// <summary>
/// The Create Cloud Service operation creates a Windows Azure cloud
/// service in a Windows Azure subscription.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Store.ICloudServiceOperations.
/// </param>
/// <param name='parameters'>
/// Parameters used to specify how the Create procedure will function.
/// </param>
/// <returns>
/// The response body contains the status of the specified asynchronous
/// operation, indicating whether it has succeeded, is inprogress, or
/// has failed. Note that this status is distinct from the HTTP status
/// code returned for the Get Operation Status operation itself. If
/// the asynchronous operation succeeded, the response body includes
/// the HTTP status code for the successful request. If the
/// asynchronous operation failed, the response body includes the HTTP
/// status code for the failed request, and also includes error
/// information regarding the failure.
/// </returns>
public static AddOnOperationStatusResponse BeginCreating(this ICloudServiceOperations operations, CloudServiceCreateParameters parameters)
{
try
{
return operations.BeginCreatingAsync(parameters).Result;
}
catch (AggregateException ex)
{
if (ex.InnerExceptions.Count > 1)
{
throw;
}
else
{
throw ex.InnerException;
}
}
}
示例6: BeginCreating
/// <summary>
/// The Create Store Item operation creates Windows Azure Store entries
/// in a Windows Azure subscription.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Store.IAddOnOperations.
/// </param>
/// <param name='cloudServiceName'>
/// The name of the cloud service to which this store item will be
/// assigned.
/// </param>
/// <param name='resourceName'>
/// The name of this resource.
/// </param>
/// <param name='addOnName'>
/// The add on name.
/// </param>
/// <param name='parameters'>
/// Parameters used to specify how the Create procedure will function.
/// </param>
/// <returns>
/// The response body contains the status of the specified asynchronous
/// operation, indicating whether it has succeeded, is inprogress, or
/// has failed. Note that this status is distinct from the HTTP status
/// code returned for the Get Operation Status operation itself. If
/// the asynchronous operation succeeded, the response body includes
/// the HTTP status code for the successful request. If the
/// asynchronous operation failed, the response body includes the HTTP
/// status code for the failed request, and also includes error
/// information regarding the failure.
/// </returns>
public static AddOnOperationStatusResponse BeginCreating(this IAddOnOperations operations, string cloudServiceName, string resourceName, string addOnName, AddOnCreateParameters parameters)
{
try
{
return operations.BeginCreatingAsync(cloudServiceName, resourceName, addOnName, parameters).Result;
}
catch (AggregateException ex)
{
if (ex.InnerExceptions.Count > 1)
{
throw;
}
else
{
throw ex.InnerException;
}
}
}
示例7: BeginCreating
/// <summary>
/// The Add Role operation adds a virtual machine to an existing
/// deployment. You can refer to the OSDisk in the Add Role operation
/// in the following ways. Platform/User Image – Set the
/// SourceImageName to a platform or user image. You can optionally
/// specify the DiskName and MediaLink values as part the operation to
/// control the name and location of target disk. When DiskName and
/// MediaLink are specified in this mode, they must not already exist
/// in the system, otherwise a conflict fault is returned. UserDisk –
/// Set DiskName to a user supplied image in image repository.
/// SourceImageName must be set to NULL. All other properties are
/// ignored. Blob in a Storage Account – Set MediaLink to a blob
/// containing the image. SourceImageName and DiskName are set to
/// NULL. (see
/// http://msdn.microsoft.com/en-us/library/windowsazure/jj157186.aspx
/// for more information)
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations.
/// </param>
/// <param name='serviceName'>
/// The name of your service.
/// </param>
/// <param name='deploymentName'>
/// The name of your deployment.
/// </param>
/// <param name='parameters'>
/// Parameters supplied to the Create Virtual Machine operation.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
public static OperationResponse BeginCreating(this IVirtualMachineOperations operations, string serviceName, string deploymentName, VirtualMachineCreateParameters parameters)
{
try
{
return operations.BeginCreatingAsync(serviceName, deploymentName, parameters).Result;
}
catch (AggregateException ex)
{
if (ex.InnerExceptions.Count > 1)
{
throw;
}
else
{
throw ex.InnerException;
}
}
}
示例8: BeginCreatingAsync
/// <summary>
/// Creates a new Network Security Group.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations.
/// </param>
/// <param name='parameters'>
/// Required. Parameters supplied to the Create Network Security Group
/// operation.
/// </param>
/// <returns>
/// The response body contains the status of the specified asynchronous
/// operation, indicating whether it has succeeded, is inprogress, or
/// has failed. Note that this status is distinct from the HTTP status
/// code returned for the Get Operation Status operation itself. If
/// the asynchronous operation succeeded, the response body includes
/// the HTTP status code for the successful request. If the
/// asynchronous operation failed, the response body includes the HTTP
/// status code for the failed request, and also includes error
/// information regarding the failure.
/// </returns>
public static Task<OperationStatusResponse> BeginCreatingAsync(this INetworkSecurityGroupOperations operations, NetworkSecurityGroupCreateParameters parameters)
{
return operations.BeginCreatingAsync(parameters, CancellationToken.None);
}
示例9: BeginCreatingAsync
/// <summary>
/// Creates a profile
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IPolicyOperations.
/// </param>
/// <param name='policyName'>
/// Required. Policy Name.
/// </param>
/// <param name='input'>
/// Required. Input to create profile
/// </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 IPolicyOperations operations, string policyName, CreatePolicyInput input, CustomRequestHeaders customRequestHeaders)
{
return operations.BeginCreatingAsync(policyName, input, customRequestHeaders, CancellationToken.None);
}
示例10: BeginCreatingAsync
/// <summary>
/// The Create VM Image operation creates a VM image that in your image
/// repository. (see
/// http://msdn.microsoft.com/en-us/library/azure/dn775054.aspx for
/// more information)
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Compute.IVirtualMachineVMImageOperations.
/// </param>
/// <param name='parameters'>
/// Required. Parameters supplied to the virtual machine VM image
/// create operation.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
public static Task<AzureOperationResponse> BeginCreatingAsync(this IVirtualMachineVMImageOperations operations, VirtualMachineVMImageCreateParameters parameters)
{
return operations.BeginCreatingAsync(parameters, CancellationToken.None);
}
示例11: BeginCreatingAsync
/// <summary>
/// Creates a vault
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.RecoveryServices.IVaultOperations.
/// </param>
/// <param name='cloudServiceName'>
/// Required. The name of the cloud service containing the job
/// collection.
/// </param>
/// <param name='vaultName'>
/// Required. The name of the vault to create.
/// </param>
/// <param name='vaultCreationInput'>
/// Required. Vault object to be created
/// </param>
/// <returns>
/// The response model for the Vm group object.
/// </returns>
public static Task<VaultCreateResponse> BeginCreatingAsync(this IVaultOperations operations, string cloudServiceName, string vaultName, VaultCreateArgs vaultCreationInput)
{
return operations.BeginCreatingAsync(cloudServiceName, vaultName, vaultCreationInput, CancellationToken.None);
}
示例12: BeginCreatingAsync
/// <summary>
/// The Create Cloud Service operation creates a Windows Azure cloud
/// service in a Windows Azure subscription.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Store.ICloudServiceOperations.
/// </param>
/// <param name='parameters'>
/// Parameters used to specify how the Create procedure will function.
/// </param>
/// <returns>
/// The response body contains the status of the specified asynchronous
/// operation, indicating whether it has succeeded, is inprogress, or
/// has failed. Note that this status is distinct from the HTTP status
/// code returned for the Get Operation Status operation itself. If
/// the asynchronous operation succeeded, the response body includes
/// the HTTP status code for the successful request. If the
/// asynchronous operation failed, the response body includes the HTTP
/// status code for the failed request, and also includes error
/// information regarding the failure.
/// </returns>
public static Task<AddOnOperationStatusResponse> BeginCreatingAsync(this ICloudServiceOperations operations, CloudServiceCreateParameters parameters)
{
return operations.BeginCreatingAsync(parameters, CancellationToken.None);
}
示例13: BeginCreatingAsync
/// <summary>
/// Creates a recovery plan.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IRecoveryPlanOperations.
/// </param>
/// <param name='recoveryPlanName'>
/// Required. Recovery plan name.
/// </param>
/// <param name='input'>
/// Required. Create recovery plan input.
/// </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 IRecoveryPlanOperations operations, string recoveryPlanName, CreateRecoveryPlanInput input, CustomRequestHeaders customRequestHeaders)
{
return operations.BeginCreatingAsync(recoveryPlanName, input, customRequestHeaders, CancellationToken.None);
}
示例14: BeginCreatingAsync
/// <summary>
/// The Begin Creating Storage Account operation creates a new storage
/// account in Azure.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.StorSimple.IServiceConfigurationOperations.
/// </param>
/// <param name='serviceConfiguration'>
/// Required. Parameters supplied to the Begin Creating Storage Account
/// operation.
/// </param>
/// <param name='customRequestHeaders'>
/// Required. The Custom Request Headers which client must use.
/// </param>
/// <returns>
/// This is the Task Response for all Async Calls
/// </returns>
public static Task<TaskResponse> BeginCreatingAsync(this IServiceConfigurationOperations operations, ServiceConfiguration serviceConfiguration, CustomRequestHeaders customRequestHeaders)
{
return operations.BeginCreatingAsync(serviceConfiguration, customRequestHeaders, CancellationToken.None);
}
示例15: BeginCreatingAsync
/// <summary>
/// The Begin Creating Service Certificate operation adds a certificate
/// to a hosted service. This operation is an asynchronous operation.
/// To determine whether the management service has finished
/// processing the request, call Get Operation Status. (see
/// http://msdn.microsoft.com/en-us/library/windowsazure/ee460817.aspx
/// for more information)
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Compute.IServiceCertificateOperations.
/// </param>
/// <param name='serviceName'>
/// Required. The DNS prefix name of your service.
/// </param>
/// <param name='parameters'>
/// Required. Parameters supplied to the Begin Creating Service
/// Certificate operation.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
public static Task<AzureOperationResponse> BeginCreatingAsync(this IServiceCertificateOperations operations, string serviceName, ServiceCertificateCreateParameters parameters)
{
return operations.BeginCreatingAsync(serviceName, parameters, CancellationToken.None);
}