Class MailNotificationHandler
Handles sending notifications via email using Amazon Simple Email Service (SES).
Inherited Members
Namespace: Innovt.Cloud.AWS.Notification
Assembly: Innovt.Cloud.AWS.Notification.dll
Syntax
public class MailNotificationHandler : AwsBaseService, IDisposable, INotificationHandler
Constructors
| Edit this page View SourceMailNotificationHandler(ILogger, IAwsConfiguration)
Initializes a new instance of the MailNotificationHandler class.
Declaration
public MailNotificationHandler(ILogger logger, IAwsConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The logger. |
IAwsConfiguration | configuration | The AWS configuration. |
MailNotificationHandler(ILogger, IAwsConfiguration, string)
Initializes a new instance of the MailNotificationHandler class with a specified region.
Declaration
public MailNotificationHandler(ILogger logger, IAwsConfiguration configuration, string region)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The logger. |
IAwsConfiguration | configuration | The AWS configuration. |
string | region | The AWS region. |
Properties
| Edit this page View SourceDefaultCharset
Gets or sets the default charset for the email.
Declaration
public string DefaultCharset { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceDisposeServices()
Disposes of the Amazon Simple Email Service (SES) client instance.
Declaration
protected override void DisposeServices()
Overrides
| Edit this page View SourceSendAsync(NotificationMessage, CancellationToken)
Sends a notification via email asynchronously.
Declaration
public Task<dynamic> SendAsync(NotificationMessage message, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
NotificationMessage | message | The notification message. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
Task<dynamic> | A dynamic response from the email sending operation. |