API Reference
Class
NotificationSenderFactory
Creates configured notification senders.
Inheritance
- Object
- NotificationSenderFactory
Methods
public static INotificationSender CreateCustom(Func<String, CancellationToken, Task> handler) #Returns:
INotificationSenderCreates a notification sender using a custom delegate.
Parameters
- handler System.Func{System.String,System.Threading.CancellationToken,System.Threading.Tasks.Task}
- Delegate invoked to deliver the message.
public static INotificationSender CreateEmail(String smtpHost, Int32 port, Boolean useSsl, String from, String to, String username = null, String password = null) #Returns:
INotificationSenderCreates an email notification sender.
Parameters
- smtpHost System.String
- SMTP server host.
- port System.Int32
- SMTP server port.
- useSsl System.Boolean
- Whether to use SSL.
- from System.String
- Sender email address.
- to System.String
- Recipient email address.
- username System.String = null
- SMTP username.
- password System.String = null
- SMTP password.
public static INotificationSender CreateWebhook(String url) #Returns:
INotificationSenderCreates a webhook notification sender.
Parameters
- url System.String
- Webhook URL.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object