Skip to main content

Definition

Assembly: CloudNimble.SimpleMessageBus.Core.dll Namespace: CloudNimble.SimpleMessageBus.Core Inheritance: System.Object

Syntax

Summary

Base class providing a complete implementation of common message functionality.

Remarks

MessageBase provides a convenient base class that implements all core message interfaces, making it easy to create new message types without having to implement the common functionality manually. It automatically handles ID generation, metadata initialization, tracking properties, and provides constructors for creating child messages with proper lineage tracking. This class is abstract and must be inherited to create concrete message types. It’s recommended to use this base class for most message implementations unless you have specific requirements that prevent inheritance.

Examples

Constructors

.ctor Inherited

Inherited from object

Syntax

Properties

CorrelationId

Syntax

Property Value

Type: System.Guid

Id

Syntax

Property Value

Type: System.Guid

Metadata

Syntax

Property Value

Type: System.Collections.Concurrent.ConcurrentDictionary<string, object>

ParentId

Syntax

Property Value

Type: System.Nullable<System.Guid>

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?
  • CloudNimble.SimpleMessageBus.Core.IMessage
  • CloudNimble.SimpleMessageBus.Core.IMetadataAware
  • CloudNimble.SimpleMessageBus.Core.ITrackable