Class Message<P>
public class Message<P> : AbstractMessage, IMessage<P>, IMessage
Type Parameters
P
- Inheritance
-
Message<P>
- Implements
-
IMessage<P>
- Derived
- Inherited Members
Constructors
Message(P)
protected Message(P payload)
Parameters
payload
P
Message(P, IMessageHeaders)
protected Message(P payload, IMessageHeaders headers)
Parameters
payload
Pheaders
IMessageHeaders
Message(P, IDictionary<string, object>)
protected Message(P payload, IDictionary<string, object> headers)
Parameters
payload
Pheaders
IDictionary<string, object>
Fields
headers
protected readonly IMessageHeaders headers
Field Value
payload
protected readonly P payload
Field Value
- P
Properties
Headers
Gets the headers for the message
public IMessageHeaders Headers { get; }
Property Value
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
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.