当前位置: 首页>>代码示例>>C#>>正文


C# Models.CustomRequestHeaders类代码示例

本文整理汇总了C#中Microsoft.WindowsAzure.Management.SiteRecovery.Models.CustomRequestHeaders的典型用法代码示例。如果您正苦于以下问题:C# CustomRequestHeaders类的具体用法?C# CustomRequestHeaders怎么用?C# CustomRequestHeaders使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CustomRequestHeaders类属于Microsoft.WindowsAzure.Management.SiteRecovery.Models命名空间,在下文中一共展示了CustomRequestHeaders类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Create

 /// <summary>
 /// Create storage mapping.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IStoragePoolMappingOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Storage pool mapping input.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static JobResponse Create(this IStoragePoolMappingOperations operations, StoragePoolMappingInput parameters, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IStoragePoolMappingOperations)s).CreateAsync(parameters, customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:24,代码来源:StoragePoolMappingOperationsExtensions.cs

示例2: CreateExtendedInfo

 /// <summary>
 /// Get the vault extended info.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IVaultExtendedInfoOperations.
 /// </param>
 /// <param name='extendedInfoArgs'>
 /// Required. Create resource exnteded info input parameters.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static AzureOperationResponse CreateExtendedInfo(this IVaultExtendedInfoOperations operations, ResourceExtendedInformationArgs extendedInfoArgs, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IVaultExtendedInfoOperations)s).CreateExtendedInfoAsync(extendedInfoArgs, customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:25,代码来源:VaultExtendedInfoOperationsExtensions.cs

示例3: Get

 /// <summary>
 /// Get the protected container by Id.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IProtectionContainerOperations.
 /// </param>
 /// <param name='protectionContainerId'>
 /// Required. Protection Container ID.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Protection Container object.
 /// </returns>
 public static ProtectionContainerResponse Get(this IProtectionContainerOperations operations, string protectionContainerId, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IProtectionContainerOperations)s).GetAsync(protectionContainerId, customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
开发者ID:qunshuzhang,项目名称:azure-sdk-for-net,代码行数:24,代码来源:ProtectionContainerOperationsExtensions.cs

示例4: Commit

 /// <summary>
 /// Commit the recovery plan.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IRecoveryPlanOperations.
 /// </param>
 /// <param name='recoveryPlanId'>
 /// Required. RecoveryPlan ID.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static JobResponse Commit(this IRecoveryPlanOperations operations, string recoveryPlanId, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IRecoveryPlanOperations)s).CommitAsync(recoveryPlanId, customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
开发者ID:jianghaolu,项目名称:azure-sdk-for-net,代码行数:24,代码来源:RecoveryPlanOperationsExtensions.cs

示例5: List

 /// <summary>
 /// Get the list of all storages under the vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IStorageOperations.
 /// </param>
 /// <param name='serverId'>
 /// Required. Server Id.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the list storage operation.
 /// </returns>
 public static StorageListResponse List(this IStorageOperations operations, string serverId, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IStorageOperations)s).ListAsync(serverId, customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:24,代码来源:StorageOperationsExtensions.cs

示例6: CreateAndAssociate

 /// <summary>
 /// Enable Protection for the given protection entity.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IProtectionProfileOperations.
 /// </param>
 /// <param name='input'>
 /// Required. input.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static JobResponse CreateAndAssociate(this IProtectionProfileOperations operations, CreateAndAssociateProtectionProfileInput input, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IProtectionProfileOperations)s).CreateAndAssociateAsync(input, customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:24,代码来源:ProtectionProfileOperationsExtensions.cs

示例7: CommitFailover

 /// <summary>
 /// Commit failover of a protection entity.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IProtectionEntityOperations.
 /// </param>
 /// <param name='protectionContainerId'>
 /// Required. Parent Protection Container ID.
 /// </param>
 /// <param name='protectionEntityId'>
 /// Required. Protection entity ID.
 /// </param>
 /// <param name='parameters'>
 /// Required. Commit failover request.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static JobResponse CommitFailover(this IProtectionEntityOperations operations, string protectionContainerId, string protectionEntityId, CommitFailoverRequest parameters, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IProtectionEntityOperations)s).CommitFailoverAsync(protectionContainerId, protectionEntityId, parameters, customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:30,代码来源:ProtectionEntityOperationsExtensions.cs

示例8: Cancel

 /// <summary>
 /// Cancel the job.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IJobOperations.
 /// </param>
 /// <param name='jobId'>
 /// Required. Job ID.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse Cancel(this IJobOperations operations, string jobId, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IJobOperations)s).CancelAsync(jobId, customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
开发者ID:qunshuzhang,项目名称:azure-sdk-for-net,代码行数:25,代码来源:JobOperationsExtensions.cs

示例9: GetAsync

 /// <summary>
 /// Get the VM object by Id.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IVirtualMachineOperations.
 /// </param>
 /// <param name='protectionContainerId'>
 /// Required. Parent Protection Container ID.
 /// </param>
 /// <param name='virtualMachineId'>
 /// Required. VM ID.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Vm object.
 /// </returns>
 public static Task<VirtualMachineResponse> GetAsync(this IVirtualMachineOperations operations, string protectionContainerId, string virtualMachineId, CustomRequestHeaders customRequestHeaders)
 {
     return operations.GetAsync(protectionContainerId, virtualMachineId, customRequestHeaders, CancellationToken.None);
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:23,代码来源:VirtualMachineOperationsExtensions.cs

示例10: UpdateVmPropertiesAsync

 /// <summary>
 /// Updates VM properties.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IVirtualMachineOperations.
 /// </param>
 /// <param name='protectionContainerId'>
 /// Required. Parent Protection Container ID.
 /// </param>
 /// <param name='virtualMachineId'>
 /// Required. VM ID.
 /// </param>
 /// <param name='parameters'>
 /// Required. Update VM properties input.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static Task<JobResponse> UpdateVmPropertiesAsync(this IVirtualMachineOperations operations, string protectionContainerId, string virtualMachineId, VMProperties parameters, CustomRequestHeaders customRequestHeaders)
 {
     return operations.UpdateVmPropertiesAsync(protectionContainerId, virtualMachineId, parameters, customRequestHeaders, CancellationToken.None);
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:26,代码来源:VirtualMachineOperationsExtensions.cs

示例11: UpdateVmProperties

 /// <summary>
 /// Updates VM properties.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IVirtualMachineOperations.
 /// </param>
 /// <param name='protectionContainerId'>
 /// Required. Parent Protection Container ID.
 /// </param>
 /// <param name='virtualMachineId'>
 /// Required. VM ID.
 /// </param>
 /// <param name='parameters'>
 /// Required. Update VM properties input.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static JobResponse UpdateVmProperties(this IVirtualMachineOperations operations, string protectionContainerId, string virtualMachineId, VMProperties parameters, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IVirtualMachineOperations)s).UpdateVmPropertiesAsync(protectionContainerId, virtualMachineId, parameters, customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:30,代码来源:VirtualMachineOperationsExtensions.cs

示例12: List

 /// <summary>
 /// Get the list of all ProtectionContainers for the given server.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IProtectionProfileOperations.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the list ProtectionProfiles operation.
 /// </returns>
 public static ProtectionProfileListResponse List(this IProtectionProfileOperations operations, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IProtectionProfileOperations)s).ListAsync(customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:21,代码来源:ProtectionProfileOperationsExtensions.cs

示例13: EnableProtectionAsync

 /// <summary>
 /// Enable Protection for the given protection entity.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IProtectionEntityOperations.
 /// </param>
 /// <param name='protectionContainerId'>
 /// Required. Parent Protection Container ID.
 /// </param>
 /// <param name='protectionEntityId'>
 /// Required. Protection entity ID.
 /// </param>
 /// <param name='input'>
 /// Optional. Protection entity ID.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static Task<JobResponse> EnableProtectionAsync(this IProtectionEntityOperations operations, string protectionContainerId, string protectionEntityId, EnableProtectionInput input, CustomRequestHeaders customRequestHeaders)
 {
     return operations.EnableProtectionAsync(protectionContainerId, protectionEntityId, input, customRequestHeaders, CancellationToken.None);
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:26,代码来源:ProtectionEntityOperationsExtensions.cs

示例14: Delete

 /// <summary>
 /// Get the Site object by Id.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.ISiteOperations.
 /// </param>
 /// <param name='siteId'>
 /// Required. Site ID.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static JobResponse Delete(this ISiteOperations operations, string siteId, CustomRequestHeaders customRequestHeaders)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((ISiteOperations)s).DeleteAsync(siteId, customRequestHeaders);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:24,代码来源:SiteOperationsExtensions.cs

示例15: CreateAsync

 /// <summary>
 /// Get the Site object by Id.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.ISiteOperations.
 /// </param>
 /// <param name='input'>
 /// Required. Site Creation Input.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static Task<JobResponse> CreateAsync(this ISiteOperations operations, SiteCreationInput input, CustomRequestHeaders customRequestHeaders)
 {
     return operations.CreateAsync(input, customRequestHeaders, CancellationToken.None);
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:20,代码来源:SiteOperationsExtensions.cs


注:本文中的Microsoft.WindowsAzure.Management.SiteRecovery.Models.CustomRequestHeaders类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。