NotificationExtensionHelperSendNotificationsAsyncTNotification, TNotificationData - метод |
Пространство имён:
Tessa.Extensions.Default.Server.Notices
Сборка:
Tessa.Extensions.Default.Server (в Tessa.Extensions.Default.Server.dll) Версия: 3.5.0.19
Синтаксис 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
- Тип: Tessa.Extensions.Default.Shared.NoticesINotificationContext
- notifications
- Тип: System.Collections.GenericICollectionTNotification
- dataList
- Тип: System.Collections.GenericIEnumerableTNotificationData
- getSubjectFuncAsync
- Тип: Tessa.Extensions.Default.Server.NoticesGetNotificationSubjectFuncAsyncTNotification, TNotificationData
- getBodyFuncAsync
- Тип: Tessa.Extensions.Default.Server.NoticesGetNotificationBodyFuncAsyncTNotification, TNotificationData
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Параметры типа
- TNotification
- TNotificationData
Возвращаемое значение
Тип:
TaskСм. также