NotificationsGlobalCacheGetNotificationsAsync - метод
Returns all notifications stored in cache.
Пространство имён: Tessa.NoticesСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public Task<ReadOnlyCollection<NotificationEmail>> GetNotificationsAsync(
Func<CancellationToken, Task<ReadOnlyCollection<NotificationEmail>?>> getNotificationsAsync,
CancellationToken cancellationToken = default
)
Public Function GetNotificationsAsync (
getNotificationsAsync As Func(Of CancellationToken, Task(Of ReadOnlyCollection(Of NotificationEmail))),
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ReadOnlyCollection(Of NotificationEmail))
public:
Task<ReadOnlyCollection<NotificationEmail^>^>^ GetNotificationsAsync(
Func<CancellationToken, Task<ReadOnlyCollection<NotificationEmail^>^>^>^ getNotificationsAsync,
CancellationToken cancellationToken = CancellationToken()
)
member GetNotificationsAsync :
getNotificationsAsync : Func<CancellationToken, Task<ReadOnlyCollection<NotificationEmail>>> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ReadOnlyCollection<NotificationEmail>>
- 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.