ReconArt.Email.Sender.Identity
4.2.1
Prefix Reserved
dotnet add package ReconArt.Email.Sender.Identity --version 4.2.1
NuGet\Install-Package ReconArt.Email.Sender.Identity -Version 4.2.1
<PackageReference Include="ReconArt.Email.Sender.Identity" Version="4.2.1" />
<PackageVersion Include="ReconArt.Email.Sender.Identity" Version="4.2.1" />
<PackageReference Include="ReconArt.Email.Sender.Identity" />
paket add ReconArt.Email.Sender.Identity --version 4.2.1
#r "nuget: ReconArt.Email.Sender.Identity, 4.2.1"
#:package ReconArt.Email.Sender.Identity@4.2.1
#addin nuget:?package=ReconArt.Email.Sender.Identity&version=4.2.1
#tool nuget:?package=ReconArt.Email.Sender.Identity&version=4.2.1
ReconArt.Email.Sender.Identity
This package extends ReconArt.Email.Sender with support for ASP.NET Identity.
Usage
The registration methods mirror their non-identity counterparts from ReconArt.Email.Sender one-for-one, with the exception that they also register IEmailSender for ASP.NET Identity, as well as accepting a flag of whether or not the ASP.NET Identity implementation should schedule emails or await them.
public void ConfigureServices(IServiceCollection services)
{
// Register IEmailSender for ASP.NET Identity, as well as IEmailSenderService for more flexible usage.
// The ASP.NET Identity implementation will schedule emails by default, as specified by `useBlockingIdentityService`.
// Setting the flag to true will await the emails instead.
services.AddIdentityEmailSenderService(useBlockingIdentityService: false);
}
The ASP.NET Identity implementation will throw an InvalidOperationException if sending/scheduling fails.
OAuth2 authentication and dynamic runtime configuration are inherited from ReconArt.Email.Sender; configure them through the same EmailSenderOptions, EmailSenderStartupOptions, and configureStartupOptions delegate exposed by these registration methods.
For dynamic runtime configuration, register an IEmailSenderOptionsProvider or an IOptionsMonitor<EmailSenderOptions> implementation exactly like AddEmailSenderService<TOptionsSource>, with startup options bound from the EmailSender:Startup configuration section:
services.AddIdentityEmailSenderService<DatabaseEmailSenderOptionsProvider>(configuration);
See the ReconArt.Email.Sender README for the full dynamic runtime configuration guide, including the provider contract and OAuth2 token persistence rules.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- Microsoft.AspNetCore.Identity.UI (>= 10.0.10)
- ReconArt.Email.Sender (>= 4.2.1)
-
net8.0
- Microsoft.AspNetCore.Identity.UI (>= 8.0.29)
- ReconArt.Email.Sender (>= 4.2.1)
-
net9.0
- Microsoft.AspNetCore.Identity.UI (>= 9.0.18)
- ReconArt.Email.Sender (>= 4.2.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.