Domain Detective

API Reference

Class

NotificationSenderFactory

Namespace DomainDetective.Monitoring
Assembly DomainDetective
Modifiers static

Creates configured notification senders.

Inheritance

  • Object
  • NotificationSenderFactory

Methods

public static INotificationSender CreateCustom(Func<String, CancellationToken, Task> handler) #
Returns: INotificationSender

Creates a notification sender using a custom delegate.

Parameters

handler System.Func{System.String,System.Threading.CancellationToken,System.Threading.Tasks.Task} requiredposition: 0
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: INotificationSender

Creates an email notification sender.

Parameters

smtpHost System.String requiredposition: 0
SMTP server host.
port System.Int32 requiredposition: 1
SMTP server port.
useSsl System.Boolean requiredposition: 2
Whether to use SSL.
from System.String requiredposition: 3
Sender email address.
to System.String requiredposition: 4
Recipient email address.
username System.String = null optionalposition: 5
SMTP username.
password System.String = null optionalposition: 6
SMTP password.
public static INotificationSender CreateWebhook(String url) #
Returns: INotificationSender

Creates a webhook notification sender.

Parameters

url System.String requiredposition: 0
Webhook URL.
{{ include "footer" }}