Definition
Assembly: CloudNimble.SimpleMessageBus.Core.dll Namespace: CloudNimble.SimpleMessageBus.CoreSyntax
Summary
Defines the required composition of every Message published to the SimpleMessageBus.Remarks
All messages in the SimpleMessageBus system must implement this interface. The Id property ensures that each message can be uniquely identified throughout its lifecycle, including during processing, error handling, and when moved to poison queues.Examples
Properties
Id Abstract
Gets or sets the unique identifier for this Message.Syntax
Property Value
Type:System.Guid
A Guid that uniquely identifies this message instance. This value should be set when
the message is created and remain constant throughout the message’s lifetime.
Remarks
This identifier is used for tracking messages through the system, deduplication, and correlating messages in poison queues with their original instances.Methods
CreateChild Extension
Extension method from
CloudNimble.SimpleMessageBus.Core.MessageExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
parent | CloudNimble.SimpleMessageBus.Core.IMessage | The parent message. |
Returns
Type:TChild
A new child message with inherited metadata and correlation.
Type Parameters
TChild- The type of child message to create.
Examples
LastRunSucceeded Extension
Extension method from
CloudNimble.SimpleMessageBus.Core.MessageExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
message | CloudNimble.SimpleMessageBus.Core.IMessage | The message to check. |
handlerTypeName | string | The handler type name. If not provided, attempts to detect from call stack. |
Returns
Type:bool
true if this handler already ran successfully; otherwise, false.
Examples
UpdateResult Extension
Extension method from
CloudNimble.SimpleMessageBus.Core.MessageExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
message | CloudNimble.SimpleMessageBus.Core.IMessage | The message to update. |
status | bool | The execution status to record. |
handlerTypeName | string | The handler type name. If not provided, attempts to detect from call stack. |