/// <summary> /// Send notification. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='notificationIds'> /// List of notification ids /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='appName'> /// The name of the application /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IPush operations, NotificationIdList notificationIds, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(notificationIds, ownerName, appName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Send notification. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='notificationIds'> /// List of notification ids /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='appName'> /// The name of the application /// </param> public static void Delete(this IPush operations, NotificationIdList notificationIds, string ownerName, string appName) { operations.DeleteAsync(notificationIds, ownerName, appName).GetAwaiter().GetResult(); }