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
<PackageReference Include="Somum.Broadcast.Requests" Version="10.1.6" />
<PackageVersion Include="Somum.Broadcast.Requests" Version="10.1.6" />
<PackageReference Include="Somum.Broadcast.Requests" />
paket add Somum.Broadcast.Requests --version 10.1.6
#r "nuget: Somum.Broadcast.Requests, 10.1.6"
#:package Somum.Broadcast.Requests@10.1.6
#addin nuget:?package=Somum.Broadcast.Requests&version=10.1.6
#tool nuget:?package=Somum.Broadcast.Requests&version=10.1.6
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.Dtosfor broadcast, recipient, and job data contractsSomum.Entities.Enumsfor shared domain valuesSomum.Requestsfor 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.
CreateBroadcastJobCommandBasePayloadcontains options shared by launch modes.RunBroadcastTemplateCommandPayloadpreserves wizard defaults and permits supported overrides.CreateBroadcastJobCommandPayloadsupplies 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:
Expandrequests related resources to be expanded in the returned object graph.Includerequests 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 | Versions 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. |
-
.NETStandard 2.0
- Somum.Dtos (>= 10.1.6)
- Somum.Entities.Enums (>= 10.1.6)
- Somum.Requests (>= 10.1.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.