NotificationsGlobalCacheGetNotificationsAsync - метод

Returns all notifications stored in cache.

Definition

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

Параметры

getNotificationsAsync  FuncCancellationToken, ValueTaskIReadOnlyListNotificationEmail
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.

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

ValueTaskIReadOnlyListNotificationEmail
Notifications collection.

См. также