Definition
Assembly: CloudNimble.SimpleMessageBus.Core.dll Namespace: CloudNimble.SimpleMessageBus.Core Inheritance: System.ObjectSyntax
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
objectSyntax
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
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?
Related APIs
- CloudNimble.SimpleMessageBus.Core.IMessage
- CloudNimble.SimpleMessageBus.Core.IMetadataAware
- CloudNimble.SimpleMessageBus.Core.ITrackable