Пример #1
0
 /// <summary>
 /// Gets an email notification(alert) configuration.
 /// </summary>
 /// <remarks>
 /// Gets the details of the specified email notification(alert) configuration.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='alertSettingName'>
 /// The name of the email notification configuration.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Alert> GetAsync(this IReplicationAlertSettingsOperations operations, string alertSettingName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(alertSettingName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// Gets the list of configured email notification(alert) configurations.
 /// </summary>
 /// <remarks>
 /// Gets the list of email notification(alert) configurations for the vault.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Alert> > ListNextAsync(this IReplicationAlertSettingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #3
0
 /// <summary>
 /// Gets an email notification(alert) configuration.
 /// </summary>
 /// <remarks>
 /// Gets the details of the specified email notification(alert) configuration.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='alertSettingName'>
 /// The name of the email notification configuration.
 /// </param>
 public static Alert Get(this IReplicationAlertSettingsOperations operations, string alertSettingName)
 {
     return(operations.GetAsync(alertSettingName).GetAwaiter().GetResult());
 }
Пример #4
0
 /// <summary>
 /// Gets the list of configured email notification(alert) configurations.
 /// </summary>
 /// <remarks>
 /// Gets the list of email notification(alert) configurations for the vault.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <Alert> List(this IReplicationAlertSettingsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Пример #5
0
 /// <summary>
 /// Gets the list of configured email notification(alert) configurations.
 /// </summary>
 /// <remarks>
 /// Gets the list of email notification(alert) configurations for the vault.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <Alert> ListNext(this IReplicationAlertSettingsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Пример #6
0
 /// <summary>
 /// Configures email notifications for this vault.
 /// </summary>
 /// <remarks>
 /// Create or update an email notification(alert) configuration.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='alertSettingName'>
 /// The name of the email notification(alert) configuration.
 /// </param>
 /// <param name='request'>
 /// The input to configure the email notification(alert).
 /// </param>
 public static Alert Create(this IReplicationAlertSettingsOperations operations, string alertSettingName, ConfigureAlertRequest request)
 {
     return(operations.CreateAsync(alertSettingName, request).GetAwaiter().GetResult());
 }