本文整理汇总了C#中Microsoft.Azure.Management.SiteRecovery.Models.CustomRequestHeaders类的典型用法代码示例。如果您正苦于以下问题:C# CustomRequestHeaders类的具体用法?C# CustomRequestHeaders怎么用?C# CustomRequestHeaders使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CustomRequestHeaders类属于Microsoft.Azure.Management.SiteRecovery.Models命名空间,在下文中一共展示了CustomRequestHeaders类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Configure
/// <summary>
/// Updates the alert settings for the vault.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IAlertSettingsOperations.
/// </param>
/// <param name='alertSettingsName'>
/// Required. Alert Settings name.
/// </param>
/// <param name='input'>
/// Required. Configure Alerts Request.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// Model class for alerts response.
/// </returns>
public static AlertSettingsResponse Configure(this IAlertSettingsOperations operations, string alertSettingsName, ConfigureAlertSettingsRequest input, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IAlertSettingsOperations)s).ConfigureAsync(alertSettingsName, input, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
示例2: BeginConfigureProtection
/// <summary>
/// Configures protection for given protection container
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IProtectionContainerMappingOperations.
/// </param>
/// <param name='fabricName'>
/// Required. Fabric name.
/// </param>
/// <param name='protectionContainerName'>
/// Required. Protection container name.
/// </param>
/// <param name='mappingName'>
/// Required. Container mapping name.
/// </param>
/// <param name='input'>
/// Required. Create mapping input.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// A standard service response for long running operations.
/// </returns>
public static LongRunningOperationResponse BeginConfigureProtection(this IProtectionContainerMappingOperations operations, string fabricName, string protectionContainerName, string mappingName, CreateProtectionContainerMappingInput input, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IProtectionContainerMappingOperations)s).BeginConfigureProtectionAsync(fabricName, protectionContainerName, mappingName, input, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:33,代码来源:ProtectionContainerMappingOperationsExtensions.cs
示例3: Get
/// <summary>
/// Get the replication protectable object by Id.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IProtectableItemOperations.
/// </param>
/// <param name='fabricName'>
/// Required. Fabric unique name.
/// </param>
/// <param name='protectionContainerName'>
/// Required. Protection container unique name.
/// </param>
/// <param name='protectableItemName'>
/// Required. Replication protected item unique name.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// The response model for the fabric object
/// </returns>
public static ProtectableItemResponse Get(this IProtectableItemOperations operations, string fabricName, string protectionContainerName, string protectableItemName, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IProtectableItemOperations)s).GetAsync(fabricName, protectionContainerName, protectableItemName, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
示例4: BeginCommitFailover
/// <summary>
/// Commit failover of a protection entity.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IProtectionEntityOperations.
/// </param>
/// <param name='pcName'>
/// Required. Parent Protection Container name.
/// </param>
/// <param name='name'>
/// Required. Protection entity name.
/// </param>
/// <param name='parameters'>
/// Required. Commit failover request.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// A standard service response for long running operations.
/// </returns>
public static LongRunningOperationResponse BeginCommitFailover(this IProtectionEntityOperations operations, string pcName, string name, CommitFailoverRequest parameters, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IProtectionEntityOperations)s).BeginCommitFailoverAsync(pcName, name, parameters, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
示例5: BeginCheckConsistency
/// <summary>
/// Checks consistency of a fabric.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IFabricOperations.
/// </param>
/// <param name='fabricName'>
/// Required. Fabric Name.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// A standard service response for long running operations.
/// </returns>
public static LongRunningOperationResponse BeginCheckConsistency(this IFabricOperations operations, string fabricName, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IFabricOperations)s).BeginCheckConsistencyAsync(fabricName, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
示例6: CreateExtendedInfo
/// <summary>
/// Get the vault extended info.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecoveryVault.IVaultExtendedInfoOperations.
/// </param>
/// <param name='resourceGroupName'>
/// Required. The name of the resource group containing the job
/// collection.
/// </param>
/// <param name='resourceName'>
/// Required. The name of the resource.
/// </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, string resourceGroupName, string resourceName, ResourceExtendedInformationArgs extendedInfoArgs, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IVaultExtendedInfoOperations)s).CreateExtendedInfoAsync(resourceGroupName, resourceName, extendedInfoArgs, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
示例7: BeginCommitFailover
/// <summary>
/// Commit failover of the 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='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// A standard service response for long running operations.
/// </returns>
public static LongRunningOperationResponse BeginCommitFailover(this IRecoveryPlanOperations operations, string recoveryPlanName, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IRecoveryPlanOperations)s).BeginCommitFailoverAsync(recoveryPlanName, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
示例8: BeginCreating
/// <summary>
/// Creates Network Mapping.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.INetworkMappingOperations.
/// </param>
/// <param name='fabricName'>
/// Required. Fabric Name.
/// </param>
/// <param name='primaryNetworkName'>
/// Required. Primary Network Name.
/// </param>
/// <param name='networkMappingName'>
/// Required. Network Mapping Name.
/// </param>
/// <param name='input'>
/// Required. Network Mapping input.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// A standard service response for long running operations.
/// </returns>
public static LongRunningOperationResponse BeginCreating(this INetworkMappingOperations operations, string fabricName, string primaryNetworkName, string networkMappingName, CreateNetworkMappingInput input, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((INetworkMappingOperations)s).BeginCreatingAsync(fabricName, primaryNetworkName, networkMappingName, input, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
示例9: BeginDeleting
/// <summary>
/// Deletes a provider
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IRecoveryServicesProviderOperations.
/// </param>
/// <param name='fabricName'>
/// Required. Name of provider's fabric
/// </param>
/// <param name='providerName'>
/// Required. Provider Name.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// A standard service response for long running operations.
/// </returns>
public static LongRunningOperationResponse BeginDeleting(this IRecoveryServicesProviderOperations operations, string fabricName, string providerName, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IRecoveryServicesProviderOperations)s).BeginDeletingAsync(fabricName, providerName, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
示例10: BeginCreating
/// <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 LongRunningOperationResponse BeginCreating(this IPolicyOperations operations, string policyName, CreatePolicyInput input, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IPolicyOperations)s).BeginCreatingAsync(policyName, input, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
示例11: Get
/// <summary>
/// Get the server object by Id.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IServerOperations.
/// </param>
/// <param name='serverId'>
/// Required. Server ID.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// The response model for the server object
/// </returns>
public static ServerResponse Get(this IServerOperations operations, string serverId, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IServerOperations)s).GetAsync(serverId, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
示例12: Associate
/// <summary>
/// Creates a profile
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IProtectionProfileOperations.
/// </param>
/// <param name='name'>
/// Required. Input to associate profile
/// </param>
/// <param name='input'>
/// Required. Input to associate profile
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// A standard service response for long running operations.
/// </returns>
public static LongRunningOperationResponse Associate(this IProtectionProfileOperations operations, string name, ProtectionProfileAssociationInput input, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IProtectionProfileOperations)s).AssociateAsync(name, input, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
示例13: BeginPairStorageClassification
/// <summary>
/// Pairs storage to a given storage.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IStorageClassificationMappingOperations.
/// </param>
/// <param name='fabricName'>
/// Required. Fabric name.
/// </param>
/// <param name='storageClassificationName'>
/// Required. Storage name.
/// </param>
/// <param name='storageClassificationMappingName'>
/// Required. Storage mapping name.
/// </param>
/// <param name='input'>
/// Required. Create mapping input.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// A standard service response for long running operations.
/// </returns>
public static LongRunningOperationResponse BeginPairStorageClassification(this IStorageClassificationMappingOperations operations, string fabricName, string storageClassificationName, string storageClassificationMappingName, StorageClassificationMappingInput input, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IStorageClassificationMappingOperations)s).BeginPairStorageClassificationAsync(fabricName, storageClassificationName, storageClassificationMappingName, input, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:33,代码来源:StorageClassificationMappingOperationsExtensions.cs
示例14: ApplyRecoveryPoint
/// <summary>
/// Apply recovery point for the given Replication protected item.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IReplicationProtectedItemOperations.
/// </param>
/// <param name='fabricName'>
/// Required. Fabric name.
/// </param>
/// <param name='protectionContainerName'>
/// Required. Protection container name.
/// </param>
/// <param name='replicationProtectedItemName'>
/// Required. Replication protected item name.
/// </param>
/// <param name='input'>
/// Required. Apply recovery point input.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// A standard service response for long running operations.
/// </returns>
public static LongRunningOperationResponse ApplyRecoveryPoint(this IReplicationProtectedItemOperations operations, string fabricName, string protectionContainerName, string replicationProtectedItemName, ApplyRecoveryPointInput input, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IReplicationProtectedItemOperations)s).ApplyRecoveryPointAsync(fabricName, protectionContainerName, replicationProtectedItemName, input, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}
开发者ID:theadriangreen,项目名称:azure-sdk-for-net,代码行数:33,代码来源:ReplicationProtectedItemOperationsExtensions.cs
示例15: Get
/// <summary>
/// Gets the replication storage object by name.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IStorageClassificationOperations.
/// </param>
/// <param name='fabricName'>
/// Required. Fabric unique name.
/// </param>
/// <param name='storageClassificationName'>
/// Required. Storage classification unique name.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// The response model for the storage object
/// </returns>
public static StorageClassificationResponse Get(this IStorageClassificationOperations operations, string fabricName, string storageClassificationName, CustomRequestHeaders customRequestHeaders)
{
return Task.Factory.StartNew((object s) =>
{
return ((IStorageClassificationOperations)s).GetAsync(fabricName, storageClassificationName, customRequestHeaders);
}
, operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}