AugusteVN.Modules.EmailCampaigns.Features 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package AugusteVN.Modules.EmailCampaigns.Features --version 1.0.2
                    
NuGet\Install-Package AugusteVN.Modules.EmailCampaigns.Features -Version 1.0.2
                    
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="AugusteVN.Modules.EmailCampaigns.Features" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AugusteVN.Modules.EmailCampaigns.Features" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="AugusteVN.Modules.EmailCampaigns.Features" />
                    
Project file
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 AugusteVN.Modules.EmailCampaigns.Features --version 1.0.2
                    
#r "nuget: AugusteVN.Modules.EmailCampaigns.Features, 1.0.2"
                    
#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 AugusteVN.Modules.EmailCampaigns.Features@1.0.2
                    
#: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=AugusteVN.Modules.EmailCampaigns.Features&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=AugusteVN.Modules.EmailCampaigns.Features&version=1.0.2
                    
Install as a Cake Tool

AugusteVN.Modules.EmailCampaigns.Features

CQRS command and query handlers for email campaign, template, subscriber, metric, and job operations.

Part of the AugusteVN Modules collection.


Extension Method

AddEmailCampaignsFeatures

public static void AddEmailCampaignsFeatures(this IServiceCollection services, IConfiguration configuration)

Registers all FluentValidation validators from the Features assembly and auto-registers CQRS command/query handlers via RegisterHandlersFromAssembly.


CQRS Handlers

Commands (11)

Handler Description
CreateEmailCampaignCommand Creates a new email campaign with title, description, target list, and start date
UpdateEmailCampaignStatusCommand Updates the status of an existing campaign
CreateEmailTemplateCommand Creates a new email template with subject, markdown/HTML body, trigger, and delay
UpdateEmailTemplateCommand Updates an existing template's content and settings
UpdateEmailTemplateStatusCommand Updates the status of a template
UpsertEmailSubscriberCommand Creates a new subscriber or re-subscribes an existing one by email
UpdateEmailSubscriptionCommand Toggles per-category list memberships for a subscriber
DeleteEmailSubscriberCommand Permanently removes a subscriber
CreateEmailJobCommand Creates a new batch send job with target list, template, and options
UpdateEmailJobStatusCommand Updates the status of an email job
CreateSentEmailMetricCommand Records a tracking metric event (read, click, unsubscribe)

Queries (11)

Handler Description
GetEmailCampaignsQuery Paginated listing of all campaigns
GetEmailCampaignByIdQuery Single campaign by ID with nested templates
GetEmailTemplatesQuery Listing of all templates
GetEmailTemplateByIdQuery Single template by ID
GetEmailTemplateForTriggerQuery Finds the appropriate template for a given trigger event
GetEmailSubscribersQuery Listing of all subscribers
GetEmailSubscriberByIdQuery Single subscriber by ID
CountEmailSubscribersQuery Count subscribers with optional filters (include unsubscribed, email lists)
GetEmailJobsQuery Listing of all email jobs
GetSentEmailsQuery Listing of sent emails with optional filters (template, campaign, job, creator)
GetSentEmailMetricsQuery Email metrics with optional filters

Validators

Validator Rules
CreateEmailCampaignCommandValidator Title not empty, description not empty
UpdateEmailCampaignStatusCommandValidator ID not empty, status must be one of EmailCampaignStatuses.StatusList
UpdateEmailTemplateCommandValidator ID not empty, subject not empty, body not empty
UpdateEmailTemplateStatusCommandValidator ID not empty, status must be one of EmailTemplateStatuses.StatusList
CreateEmailJobCommandValidator Email template ID not empty, target email list valid
UpdateEmailJobStatusCommandValidator ID not empty, status must be one of EmailJobStatuses.StatusList
UpsertEmailSubscriberCommandValidator Email not empty, valid email format
UpdateEmailSubscriptionCommandValidator ID not empty
GetEmailSubscriberByIdQueryValidator ID not empty

Registration

// Program.cs
builder.Services.AddEmailCampaignsFeatures(builder.Configuration);

Installation

dotnet add package AugusteVN.Modules.EmailCampaigns.Features

Dependencies

  • AugusteVN.Modules.EmailCampaigns._Shared
  • AugusteVN.Modules.EmailCampaigns.Database
  • AugusteVN.CQRS.Extensions
  • EmailCampaigns module overview
  • EmailCampaigns._Shared
  • EmailCampaigns.Api
  • EmailCampaigns.Database
  • EmailCampaigns.Templates
  • EmailCampaigns._Shared.Spa
Product 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AugusteVN.Modules.EmailCampaigns.Features:

Package Downloads
AugusteVN.Modules.EmailCampaigns.Api

Minimal API endpoints for campaigns, templates, subscribers, and jobs

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.7 91 8/9/2026
1.0.6 82 8/9/2026
1.0.2 93 8/8/2026
1.0.1 87 8/8/2026
1.0.0 92 8/8/2026