Interface IMessageBuilderFactory
A factory for creating message builders
Namespace: Steeltoe.Integration.Support
Assembly: Steeltoe.Integration.Abstractions.dll
Syntax
public interface IMessageBuilderFactory
Methods
| Edit this page View SourceFromMessage(IMessage)
Create a message builder from the given message
Declaration
IMessageBuilder FromMessage(IMessage message)
Parameters
Type | Name | Description |
---|---|---|
IMessage | message | the message to use |
Returns
Type | Description |
---|---|
IMessageBuilder | the message builder |
FromMessage<T>(IMessage<T>)
Create a message builder from the given message
Declaration
IMessageBuilder<T> FromMessage<T>(IMessage<T> message)
Parameters
Type | Name | Description |
---|---|---|
IMessage<T> | message | the message to use |
Returns
Type | Description |
---|---|
IMessageBuilder<T> | the message builder |
Type Parameters
Name | Description |
---|---|
T | the type of payload |
WithPayload(Object)
Create a message builder from the given message payload
Declaration
IMessageBuilder WithPayload(object payload)
Parameters
Type | Name | Description |
---|---|---|
System.Object | payload | the payload of the message |
Returns
Type | Description |
---|---|
IMessageBuilder | the message builder |
WithPayload<T>(T)
Create a message builder from the given message payload
Declaration
IMessageBuilder<T> WithPayload<T>(T payload)
Parameters
Type | Name | Description |
---|---|---|
T | payload | the payload of the message |
Returns
Type | Description |
---|---|
IMessageBuilder<T> | the message builder |
Type Parameters
Name | Description |
---|---|
T | the type of the payload |