Table of Contents

Class Message<P>

Namespace
Steeltoe.Messaging
Assembly
Steeltoe.Messaging.MessagingBase.dll
public class Message<P> : AbstractMessage, IMessage<P>, IMessage

Type Parameters

P
Inheritance
Message<P>
Implements
Derived
Inherited Members

Constructors

Message(P)

protected Message(P payload)

Parameters

payload P

Message(P, IMessageHeaders)

protected Message(P payload, IMessageHeaders headers)

Parameters

payload P
headers IMessageHeaders

Message(P, IDictionary<string, object>)

protected Message(P payload, IDictionary<string, object> headers)

Parameters

payload P
headers IDictionary<string, object>

Fields

headers

protected readonly IMessageHeaders headers

Field Value

IMessageHeaders

payload

protected readonly P payload

Field Value

P

Properties

Headers

Gets the headers for the message

public IMessageHeaders Headers { get; }

Property Value

IMessageHeaders

Payload

Gets the body of the message

public P Payload { get; }

Property Value

P

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.