NotificationExtensionHelperSendNotificationsAsyncTNotification, TNotificationData - метод
Пространство имён: Tessa.Extensions.Default.Server.NoticesСборка: Tessa.Extensions.Default.Server (в Tessa.Extensions.Default.Server.dll) Версия: 3.6.0.22
public static Task SendNotificationsAsync<TNotification, TNotificationData>(
INotificationContext context,
ICollection<TNotification> notifications,
IEnumerable<TNotificationData> dataList,
GetNotificationSubjectFuncAsync<TNotification, TNotificationData> getSubjectFuncAsync,
GetNotificationBodyFuncAsync<TNotification, TNotificationData> getBodyFuncAsync,
CancellationToken cancellationToken = default
)
where TNotification : INotification
where TNotificationData : Object, INotificationData<TNotification>
Public Shared Function SendNotificationsAsync(Of TNotification As INotification, TNotificationData As {Object, INotificationData(Of TNotification)}) (
context As INotificationContext,
notifications As ICollection(Of TNotification),
dataList As IEnumerable(Of TNotificationData),
getSubjectFuncAsync As GetNotificationSubjectFuncAsync(Of TNotification, TNotificationData),
getBodyFuncAsync As GetNotificationBodyFuncAsync(Of TNotification, TNotificationData),
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
generic<typename TNotification, typename TNotificationData>
where TNotification : INotification
where TNotificationData : Object, INotificationData<TNotification>
static Task^ SendNotificationsAsync(
INotificationContext^ context,
ICollection<TNotification>^ notifications,
IEnumerable<TNotificationData>^ dataList,
GetNotificationSubjectFuncAsync<TNotification, TNotificationData>^ getSubjectFuncAsync,
GetNotificationBodyFuncAsync<TNotification, TNotificationData>^ getBodyFuncAsync,
CancellationToken cancellationToken = CancellationToken()
)
static member SendNotificationsAsync :
context : INotificationContext *
notifications : ICollection<'TNotification> *
dataList : IEnumerable<'TNotificationData> *
getSubjectFuncAsync : GetNotificationSubjectFuncAsync<'TNotification, 'TNotificationData> *
getBodyFuncAsync : GetNotificationBodyFuncAsync<'TNotification, 'TNotificationData> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task when 'TNotification : INotification when 'TNotificationData : Object and INotificationData<'TNotification>
- context INotificationContext
-
- notifications ICollectionTNotification
-
- dataList IEnumerableTNotificationData
-
- getSubjectFuncAsync GetNotificationSubjectFuncAsyncTNotification, TNotificationData
-
- getBodyFuncAsync GetNotificationBodyFuncAsyncTNotification, TNotificationData
-
- cancellationToken CancellationToken (Optional)
-
- TNotification
- TNotificationData
Task