Skip to main content

Definition

Assembly: CloudNimble.SimpleMessageBus.Core.dll Namespace: CloudNimble.SimpleMessageBus.Core

Syntax

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.MessageExtensions
Creates a child message that inherits metadata and correlation from the parent.

Syntax

Parameters

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.MessageExtensions
Checks if the current handler has already successfully processed this message. This enables idempotent message processing.

Syntax

Parameters

Returns

Type: bool true if this handler already ran successfully; otherwise, false.

Examples

UpdateResult Extension

Extension method from CloudNimble.SimpleMessageBus.Core.MessageExtensions
Updates the execution status for the current handler.

Syntax

Parameters

Examples