/// <summary> /// Marks alerts as read and returns the remaining number of unread /// notifications. /// </summary> /// <remarks> /// Required permissions: Alerts.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='markAsReadParameters'> /// Collection containing the unique identifiers of the notifications that will /// be marked as read /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataResponseInt64> MarkAsReadAsync(this IAlerts operations, MarkAsReadParameters markAsReadParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.MarkAsReadWithHttpMessagesAsync(markAsReadParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Marks alerts as read and returns the remaining number of unread /// notifications. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Monitoring or /// Monitoring.Write. /// /// Required permissions: Alerts.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// Collection containing the unique identifiers of the notifications that will /// be marked as read /// </param> /// <param name='expand'> /// Indicates the related entities to be represented inline. The maximum depth /// is 2. /// </param> /// <param name='select'> /// Limits the properties returned in the result. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataValueOfInt64> MarkAsReadAsync(this IAlerts operations, AlertsMarkAsReadParameters body = default(AlertsMarkAsReadParameters), string expand = default(string), string select = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.MarkAsReadWithHttpMessagesAsync(body, expand, select, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }