Class MessageBuilder
Inheritance
System.Object
MessageBuilder
Assembly: Steeltoe.Messaging.MessagingBase.dll
Syntax
public static class MessageBuilder : object
Methods
|
Edit this page
View Source
Declaration
public static IMessage CreateMessage(object payload, IMessageHeaders messageHeaders, Type payloadType = null)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
IMessageHeaders |
messageHeaders |
|
Type |
payloadType |
|
Returns
|
Edit this page
View Source
Declaration
public static IMessage<P> CreateMessage<P>(P payload, IMessageHeaders messageHeaders)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
FromMessage(IMessage, Type)
Declaration
public static AbstractMessageBuilder FromMessage(IMessage message, Type payloadType = null)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
Type |
payloadType |
|
Returns
|
Edit this page
View Source
FromMessage<P>(IMessage<P>)
Declaration
public static AbstractMessageBuilder FromMessage<P>(IMessage<P> message)
Parameters
Type |
Name |
Description |
IMessage<P> |
message |
|
Returns
Type Parameters
|
Edit this page
View Source
GetGenericParamType(IMessage, Type)
Declaration
public static Type GetGenericParamType(IMessage target, Type messagePayloadType)
Parameters
Type |
Name |
Description |
IMessage |
target |
|
Type |
messagePayloadType |
|
Returns
|
Edit this page
View Source
GetGenericParamType(Object, Type)
Declaration
public static Type GetGenericParamType(object payload, Type messagePayloadType)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
Type |
messagePayloadType |
|
Returns
|
Edit this page
View Source
WithPayload(Object, Type)
Declaration
public static AbstractMessageBuilder WithPayload(object payload, Type payloadType = null)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
Type |
payloadType |
|
Returns
|
Edit this page
View Source
WithPayload<P>(P)
Declaration
public static AbstractMessageBuilder WithPayload<P>(P payload)
Parameters
Type |
Name |
Description |
P |
payload |
|
Returns
Type Parameters