NotificationsCacheTryGetNotificationAsync(Guid, CancellationToken) - метод
Tries to get notification from cache.
Пространство имён: Tessa.NoticesСборка: Tessa (в Tessa.dll) Версия: 4.0.4
public Task<NotificationEmail?> TryGetNotificationAsync(
Guid notificationId,
CancellationToken cancellationToken = default
)
Public Function TryGetNotificationAsync (
notificationId As Guid,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of NotificationEmail)
public:
virtual Task<NotificationEmail^>^ TryGetNotificationAsync(
Guid notificationId,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract TryGetNotificationAsync :
notificationId : Guid *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<NotificationEmail>
override 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.
INotificationsCacheTryGetNotificationAsync(Guid, CancellationToken)