ISL.NetFramework.Email.Driver
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ISL.NetFramework.Email.Driver --version 1.0.0
NuGet\Install-Package ISL.NetFramework.Email.Driver -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ISL.NetFramework.Email.Driver" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ISL.NetFramework.Email.Driver" Version="1.0.0" />
<PackageReference Include="ISL.NetFramework.Email.Driver" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ISL.NetFramework.Email.Driver --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ISL.NetFramework.Email.Driver, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ISL.NetFramework.Email.Driver@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ISL.NetFramework.Email.Driver&version=1.0.0
#tool nuget:?package=ISL.NetFramework.Email.Driver&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ISL.NetFramework.Email.Driver
ISL.NetFramework.Email.Driver is a single-package email module for ISL services.
It provides:
- one-step dependency registration via
AddIslEmailDriver(configuration) - one injectable service:
IEmailDriver - direct send and background-queued send APIs
- templated email rendering and dispatch persistence through the existing ISL email pipeline
Installation
Add NuGet package:
ISL.NetFramework.Email.Driver
Registration
services.AddIslEmailDriver(configuration);
Usage
public sealed class NotificationService
{
private readonly IEmailDriver _emailDriver;
public NotificationService(IEmailDriver emailDriver)
{
_emailDriver = emailDriver;
}
public Task SendWelcomeAsync(string email, CancellationToken cancellationToken)
{
return _emailDriver.QueueTemplatedAsync(
new EmailDriverTemplatedSendRequest(
TemplateName: "welcome",
Language: "en-US",
DataPairs: new Dictionary<string, string>
{
["FirstName"] = "Ada"
},
ToRecipients: [email]),
cancellationToken).AsTask();
}
}
Configuration
Uses existing configuration sections:
Framework:EmailFramework:Email:AzureCommunicationFramework:Email:Driver
Driver-specific options:
Framework:Email:Driver:QueueMode(InMemoryorDatabase, default:InMemory)Framework:Email:Driver:QueueCapacity(default:10000)Framework:Email:Driver:MaxRetryAttempts(default:3)Framework:Email:Driver:InitialRetryDelayMilliseconds(default:250)Framework:Email:Driver:MaxRetryDelayMilliseconds(default:5000)Framework:Email:Driver:UseJitter(default:true)Framework:Email:Driver:DatabasePollingIntervalMilliseconds(default:1000, used inDatabasemode)Framework:Email:Driver:DatabaseBatchSize(default:50, used inDatabasemode)Framework:Email:Driver:ProcessingLockTimeoutSeconds(default:300, used inDatabasemode)Framework:Email:Driver:AutoCreateDatabaseQueueTable(default:false)
Example appsettings.Production.json:
{
"Framework": {
"Email": {
"Driver": {
"QueueMode": "Database",
"QueueCapacity": 50000,
"MaxRetryAttempts": 5,
"InitialRetryDelayMilliseconds": 500,
"MaxRetryDelayMilliseconds": 15000,
"UseJitter": true,
"DatabasePollingIntervalMilliseconds": 500,
"DatabaseBatchSize": 100,
"ProcessingLockTimeoutSeconds": 300,
"AutoCreateDatabaseQueueTable": false
}
}
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Dapper (>= 2.1.66)
- ISL.NetFramework.Email.Application (>= 1.0.0)
- ISL.NetFramework.Email.Azure (>= 1.0.0)
- ISL.NetFramework.Email.Infrastructure (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ISL.NetFramework.Email.Driver:
| Package | Downloads |
|---|---|
|
ISL.NetFramework.Communication.Driver
Single-package communication driver that unifies Email, SMS, and File Storage access for ISL services. |
GitHub repositories
This package is not used by any popular GitHub repositories.