NotificationsGlobalCache.GetNotificationsAsync - метод

Returns all notifications stored in cache.

Definition

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

Параметры

getNotificationsAsync  Func<CancellationToken, Task<ReadOnlyCollection<NotificationEmail>>>
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.

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

Task<ReadOnlyCollection<NotificationEmail>>
Notifications collection.

См. также