• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Models.CustomRequestHeaders类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: ListAsync

 /// <summary>
 /// Get the list of all Sites under the vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.ISiteOperations.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the list Sites operation.
 /// </returns>
 public static Task<SiteListResponse> ListAsync(this ISiteOperations operations, CustomRequestHeaders customRequestHeaders)
 {
     return operations.ListAsync(customRequestHeaders, CancellationToken.None);
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:17,代码来源:SiteOperationsExtensions.cs


示例17: DeleteAsync

 /// <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 Task<JobResponse> DeleteAsync(this ISiteOperations operations, string siteId, CustomRequestHeaders customRequestHeaders)
 {
     return operations.DeleteAsync(siteId, customRequestHeaders, CancellationToken.None);
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:20,代码来源:SiteOperationsExtensions.cs


示例18: CreateAndAssociateAsync

 /// <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 Task<JobResponse> CreateAndAssociateAsync(this IProtectionProfileOperations operations, CreateAndAssociateProtectionProfileInput input, CustomRequestHeaders customRequestHeaders)
 {
     return operations.CreateAndAssociateAsync(input, customRequestHeaders, CancellationToken.None);
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:20,代码来源:ProtectionProfileOperationsExtensions.cs


示例19: UpdateAsync

 /// <summary>
 /// Update protection profile.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.IProtectionProfileOperations.
 /// </param>
 /// <param name='input'>
 /// Required. input.
 /// </param>
 /// <param name='protectionProfileId'>
 /// Required. Profile id.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the Job details object.
 /// </returns>
 public static Task<JobResponse> UpdateAsync(this IProtectionProfileOperations operations, UpdateProtectionProfileInput input, string protectionProfileId, CustomRequestHeaders customRequestHeaders)
 {
     return operations.UpdateAsync(input, protectionProfileId, customRequestHeaders, CancellationToken.None);
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:23,代码来源:ProtectionProfileOperationsExtensions.cs


示例20: ListAsync

 /// <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 Task<StorageListResponse> ListAsync(this IStorageOperations operations, string serverId, CustomRequestHeaders customRequestHeaders)
 {
     return operations.ListAsync(serverId, customRequestHeaders, CancellationToken.None);
 }
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:20,代码来源:StorageOperationsExtensions.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Stubs.FileSystemHelper类代码示例发布时间:2022-05-26
下一篇:
C# Model.AzureService类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap