INotificationsCacheTryGetNotificationAsync(Guid, CancellationToken) - метод
Tries to get notification from cache.
Пространство имён: Tessa.NoticesСборка: Tessa (в Tessa.dll) Версия: 4.0.4
Task<NotificationEmail?> TryGetNotificationAsync(
Guid notificationId,
CancellationToken cancellationToken = default
)
Function TryGetNotificationAsync (
notificationId As Guid,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of NotificationEmail)
Task<NotificationEmail^>^ TryGetNotificationAsync(
Guid notificationId,
CancellationToken cancellationToken = CancellationToken()
)
abstract TryGetNotificationAsync :
notificationId : Guid *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<NotificationEmail>
- notificationId Guid
- Id of the notification.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskNotificationEmailNotificationEmail or
null if here is no cached notification
with given id.