 | DefaultNotificationServiceSendTemplatedNotification Method |
Send a notification using a template to one or more addresses.
Namespace: SanteDB.Core.NotificationsAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntaxpublic Guid[] SendTemplatedNotification(
string[] to,
string templateId,
string templateLanguage,
IDictionary<string, Object> templateModel,
DateTimeOffset? scheduleDelivery = null,
bool ccAdmins = false,
params NotificationAttachment[] attachments
)
Public Function SendTemplatedNotification (
to As String(),
templateId As String,
templateLanguage As String,
templateModel As IDictionary(Of String, Object),
Optional scheduleDelivery As DateTimeOffset? = Nothing,
Optional ccAdmins As Boolean = false,
ParamArray attachments As NotificationAttachment()
) As Guid()
public:
virtual array<Guid>^ SendTemplatedNotification(
array<String^>^ to,
String^ templateId,
String^ templateLanguage,
IDictionary<String^, Object^>^ templateModel,
Nullable<DateTimeOffset> scheduleDelivery = nullptr,
bool ccAdmins = false,
... array<NotificationAttachment^>^ attachments
) sealed
abstract SendTemplatedNotification :
to : string[] *
templateId : string *
templateLanguage : string *
templateModel : IDictionary<string, Object> *
?scheduleDelivery : Nullable<DateTimeOffset> *
?ccAdmins : bool *
attachments : NotificationAttachment[]
(* Defaults:
let _scheduleDelivery = defaultArg scheduleDelivery null
let _ccAdmins = defaultArg ccAdmins false
*)
-> Guid[]
override SendTemplatedNotification :
to : string[] *
templateId : string *
templateLanguage : string *
templateModel : IDictionary<string, Object> *
?scheduleDelivery : Nullable<DateTimeOffset> *
?ccAdmins : bool *
attachments : NotificationAttachment[]
(* Defaults:
let _scheduleDelivery = defaultArg scheduleDelivery null
let _ccAdmins = defaultArg ccAdmins false
*)
-> Guid[] Parameters
- to String
- The scheme qualified addresses to send the notification to.
- templateId String
- The template identifier that is available in the INotificationTemplateRepository.
- templateLanguage String
- The language spoken to define which template language variant to use.
- templateModel IDictionaryString, Object
- The data model to use when filling the template.
- scheduleDelivery NullableDateTimeOffset (Optional)
- Delay sending the notification to a particular time in the future.
- ccAdmins Boolean (Optional)
- True to also send the notification to the defined administrators in the configuration.
- attachments NotificationAttachment
- Zero or more attachments to include with the notification.
Return Value
GuidAn array of identifiers that correspond to the notifications.
Implements
INotificationServiceSendTemplatedNotification(String, String, String, IDictionaryString, Object, NullableDateTimeOffset, Boolean, NotificationAttachment)
See Also