Repository navigation
Activity Publish Event Action Node
A Publish Event Action Node generates a typed notification and publishes it from the current behavior. It is useful when other behaviors or subscribers should observe an event without choosing a single target behavior. In a UML Activity it is an action that sends a signal.
Use the generic event overload to construct the notification; its outgoing control flow continues after publication:
public sealed record OrderDispatched(string OrderId);The following fragment belongs inside the relevant method or builder callback:
.AddPublishEventAction<OrderDispatched>(
"PublishDispatch",
async c => new OrderDispatched(
c.GetTokensOfType<string>().Single()),
node => node.AddControlFlow("Continue"))
.AddAction("Continue", async c =>
await audit.RecordAsync("dispatch-published", c.CancellationToken))The publish action does not select a BehaviorId or return an application token to the local graph. Use Send Event Action Node for a directed send to one behavior, or Accept Event Action Node to handle an incoming event.
Home page Support Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0. © by Mikołaj Milewski, 2026
Overview
Installation
Runtimes
Orleans runtime
Concepts
Events and Structural Events
Messaging Patterns
Validation
Scheduling
Observability
Behaviors
Behavior Values
Dependency Injection
Behavioral Groups
State Machines
Concepts
State Identity
In-State Event Deferrals
Evaluation of Transitions
Exception Handling
Building blocks
Regions
States
State
Composite State
Orthogonal State
Final State
Pseudostates
Choice
Junction
Fork
Join
History
Transitions
Transition
Default Transition
Internal Transition
Activities
Concepts
Exception Handling
Implicit Fork and Join
Tokens
Building blocks
Nodes
Action Node
Decision Node
Merge Node
Initial Node
Final Node
Input Node
Output Node
Fork Node
Join Node
Accept Event Action Node
Send Event Action Node
Publish Event Action Node
Time Event Action Node
Data Store Node
Structured Activity Node
Iterative Activity Node
Parallel Activity Node
Flows
Data Flow
Control Flow
Actions
Entities
Fields
Mutations
Projections
Extensions
ClearScript
FluentValidation
JSON definitions
Minimal APIs
OneOf
OpenTelemetry
PlantUML
Scheduling