NotificationsGlobalCacheGetNotificationsAsync - метод

Returns all notifications stored in cache.

Definition

Пространство имён: Tessa.Notices
Сборка: Tessa (в Tessa.dll) Версия: 4.0.4
C#
public Task<ReadOnlyCollection<NotificationEmail>> GetNotificationsAsync(
	Func<CancellationToken, Task<ReadOnlyCollection<NotificationEmail>?>> getNotificationsAsync,
	CancellationToken cancellationToken = default
)

Параметры

getNotificationsAsync  FuncCancellationToken, TaskReadOnlyCollectionNotificationEmail
Function which will be called if there are not any notification in cache. If null then default function will be called.
cancellationToken  CancellationToken  (Optional)
Propagates notification that operations should be canceled.

Возвращаемое значение

TaskReadOnlyCollectionNotificationEmail
Notifications collection.

См. также