DefaultNotificationService - (SanteDB.Core.Api)
...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
<serviceProviders>
...
<add type="SanteDB.Core.Notifications.DefaultNotificationService, SanteDB.Core.Api, Version=2.1.151.0, Culture=neutral, PublicKeyToken=null" />
...
</serviceProviders>
/// Example Implementation
using SanteDB.Core.Notifications;
/// Other usings here
public class MyNotificationService : SanteDB.Core.Notifications.INotificationService {
public String ServiceName => "My own INotificationService service";
/// <summary>
/// Gets the notification relays available (SMS, EMAIL, etc.)
/// </summary>
public IEnumerable<INotificationRelay> Relays {
get;
}
/// <summary>
/// Gets the specified notification relay
/// </summary>
public INotificationRelay GetNotificationRelay(Uri toAddress){
throw new System.NotImplementedException();
}
/// <summary>
/// Gets the specified notification relay
/// </summary>
public INotificationRelay GetNotificationRelay(String toAddress){
throw new System.NotImplementedException();
}
/// <summary>
/// Send the message to the specified addresses
/// </summary>
public Guid[] Send(String[] to,String subject,String body,Nullable<DateTimeOffset> scheduleDelivery,Boolean ccAdmins,NotificationAttachment[] attachments){
throw new System.NotImplementedException();
}
}