Class MutableMessage
- Namespace
- Steeltoe.Integration.Support
- Assembly
- Steeltoe.Integration.IntegrationBase.dll
public class MutableMessage : IMessage
- Inheritance
-
MutableMessage
- Implements
- Derived
- Inherited Members
Constructors
MutableMessage(object)
public MutableMessage(object payload)
Parameters
payload
object
MutableMessage(object, MutableMessageHeaders)
public MutableMessage(object payload, MutableMessageHeaders headers)
Parameters
payload
objectheaders
MutableMessageHeaders
MutableMessage(object, IDictionary<string, object>)
public MutableMessage(object payload, IDictionary<string, object> headers)
Parameters
payload
objectheaders
IDictionary<string, object>
Fields
_headers
protected readonly MutableMessageHeaders _headers
Field Value
_payload
protected readonly object _payload
Field Value
Properties
Headers
Gets the headers for the message
public IMessageHeaders Headers { get; }
Property Value
Payload
Gets the body of the message
public object Payload { get; }
Property Value
RawHeaders
protected IDictionary<string, object> RawHeaders { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current 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.