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