GetNotificationSubjectFuncAsyncTNotification, TNotificationData - делегат |
Пространство имён:
Tessa.Extensions.Default.Server.Notices
Сборка:
Tessa.Extensions.Default.Server (в Tessa.Extensions.Default.Server.dll) Версия: 3.5.0.19
Синтаксис public delegate ValueTask<string> GetNotificationSubjectFuncAsync<in TNotification, in TNotificationData>(
INotificationContext context,
TNotification notification,
TNotificationData data,
CancellationToken cancellationToken = default
)
where TNotification : INotification
where TNotificationData : Object, INotificationData<TNotification>
Public Delegate Function GetNotificationSubjectFuncAsync(Of In TNotification As INotification, In TNotificationData As {Object, INotificationData(Of TNotification)}) (
context As INotificationContext,
notification As TNotification,
data As TNotificationData,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of String)
generic<typename TNotification, typename TNotificationData>
where TNotification : INotification
where TNotificationData : Object, INotificationData<TNotification>
public delegate ValueTask<String^> GetNotificationSubjectFuncAsync(
INotificationContext^ context,
TNotification notification,
TNotificationData data,
CancellationToken cancellationToken = CancellationToken()
)
type GetNotificationSubjectFuncAsync =
delegate of
context : INotificationContext *
notification : 'TNotification *
data : 'TNotificationData *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<string>
Параметры
- context
- Тип: Tessa.Extensions.Default.Shared.NoticesINotificationContext
- notification
- Тип: TNotification
- data
- Тип: TNotificationData
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Параметры типа
- TNotification
- TNotificationData
Возвращаемое значение
Тип:
ValueTaskStringСм. также