Somum.Broadcast.Requests 10.1.6

dotnet add package Somum.Broadcast.Requests --version 10.1.6
                    
NuGet\Install-Package Somum.Broadcast.Requests -Version 10.1.6
                    
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="Somum.Broadcast.Requests" Version="10.1.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Somum.Broadcast.Requests" Version="10.1.6" />
                    
Directory.Packages.props
<PackageReference Include="Somum.Broadcast.Requests" />
                    
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 Somum.Broadcast.Requests --version 10.1.6
                    
#r "nuget: Somum.Broadcast.Requests, 10.1.6"
                    
#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 Somum.Broadcast.Requests@10.1.6
                    
#: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=Somum.Broadcast.Requests&version=10.1.6
                    
Install as a Cake Addin
#tool nuget:?package=Somum.Broadcast.Requests&version=10.1.6
                    
Install as a Cake Tool

Somum.Broadcast.Requests

Somum.Broadcast.Requests is a .NET Standard 2.0 class library that defines the request and response contracts for the Somum broadcast domain.

It contains command and query models used to launch broadcasts, manage broadcast jobs, and retrieve broadcast jobs, broadcast wizards, and supporting broadcast configuration data. The project is transport-oriented: it describes API/mediator inputs, route metadata, and response shapes without implementing business logic.

Target Framework and Dependencies

  • Target framework: .NET Standard 2.0
  • Project dependencies:
    • Somum.Dtos for broadcast, recipient, and job data contracts
    • Somum.Entities.Enums for shared domain values
    • Somum.Requests for base command, query, pagination, and endpoint abstractions

Contract Organization

Commands

Commands under Commands/ change broadcast state or start broadcasts.

Command Purpose
RunBroadcastTemplateCommand Launches a broadcast wizard using its configured campaign, audience, media, templates, and delivery defaults. The payload can supply supported audience and message-variable overrides.
CreateBroadcastJobCommand Launches a broadcast wizard with explicit audience, campaign, recipient, and channel-message overrides.
PatchBroadcastJobCommand Applies a lifecycle operation to an existing broadcast job.
DeleteBroadcastJobCommand Deletes a broadcast job.

Both launch commands return CreateBroadcastJobCommandResponse, which describes the resolved recipients and the created broadcast job.

Broadcast launch payloads

Launch payloads are split into partial classes so that reusable campaign, delivery, email-option, recipient, template, selected-message, audience, and message-variable contracts remain organized by concern.

  • CreateBroadcastJobCommandBasePayload contains options shared by launch modes.
  • RunBroadcastTemplateCommandPayload preserves wizard defaults and permits supported overrides.
  • CreateBroadcastJobCommandPayload supplies explicit values when the caller must replace wizard configuration.

Use the default command when the broadcast wizard configuration should be the source of truth. Use the override command only when the caller must intentionally provide replacement campaign, audience, recipient, or message configuration.

Broadcast-job lifecycle

PatchBroadcastJobCommand targets a job by route-bound Id and accepts UpdateBroadcastJobStateCommandPayload.

Supported values of PatchBroadcastJobCommandState are:

  • Cancel — stop the job; it cannot be resumed.
  • Pause — temporarily halt processing.
  • Resume — continue a paused job.
  • Complete — mark the job as finished.

The command handler determines whether a requested transition is valid for the job's current state.

Queries

Queries under Queries/ retrieve broadcast resources and related configuration:

Query Purpose
GetBroadcastJobsQuery / GetBroadcastJobQuery Retrieve a paged collection of jobs or one job by identifier.
GetBroadcastTemplatesQuery / GetBroadcastTemplateQuery Retrieve a paged collection of broadcast wizards or one wizard by identifier.
GetCallerInfoQuery / GetCallersInfoQuery Retrieve caller information.
GetKeyAttributesQuery / GetOptionKeysQuery Retrieve broadcast-related key and option configuration.
GetTimeTemplateQuery / GetTimeTemplatesQuery Retrieve delivery time-template configuration.

Collection queries inherit filtering, sorting, and pagination behavior from NavigatingQuery<TResponse>.

Expanding Query Results

Broadcast queries support optional response shaping through BroadcastExpand and BroadcastInclude values:

  • Expand requests related resources to be expanded in the returned object graph.
  • Include requests additional related resources to be included in the response.

Only request fields needed by the caller to keep response payloads and query costs small.

using Somum.Broadcast.Requests;

var query = new GetBroadcastJobsQuery
{
    Expand = new List<BroadcastExpand>(),
    Include = new List<BroadcastInclude>()
};

Usage

Reference the project from another project in the solution:

<ItemGroup>
  <ProjectReference Include="..\Somum.Broadcast.Requests\Somum.Broadcast.Requests.csproj" />
</ItemGroup>

Create and dispatch a command through the application's mediator abstraction:

using Somum.Broadcast.Requests;

var command = new PatchBroadcastJobCommand
{
    Id = jobId,
    Payloads = new UpdateBroadcastJobStateCommandPayload
    {
        State = PatchBroadcastJobCommandState.Pause
    }
};

Contract Evolution

These request models are shared API and mediator contracts. When changing them:

  • Preserve existing route constants, JSON property names, and enum values.
  • Prefer additive, nullable properties over removals or renames.
  • Keep command payload validation in the corresponding sanitizer/handler project rather than embedding business logic in this project.
  • Update handlers, API endpoint documentation, mappings, and tests whenever a request or response shape changes.
  • Introduce versioned contracts when a breaking API change is unavoidable.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.1.6 34 9/15/2026
10.1.5 108 9/14/2026
10.1.4 93 9/10/2026