Table of Contents

Class AbstractMessageProducingHandler

Namespace
Steeltoe.Integration.Handler
Assembly
Steeltoe.Integration.IntegrationBase.dll
public abstract class AbstractMessageProducingHandler : AbstractMessageHandler, IMessageHandler, IServiceNameAware, IOrdered, IMessageProducer, IHeaderPropagation
Inheritance
AbstractMessageProducingHandler
Implements
Derived
Inherited Members

Constructors

AbstractMessageProducingHandler(IApplicationContext)

protected AbstractMessageProducingHandler(IApplicationContext context)

Parameters

context IApplicationContext

Properties

NotPropagatedHeaders

Gets or sets the headers that should not be copied from inbound message if handler is configured to copy headers

public virtual IList<string> NotPropagatedHeaders { get; set; }

Property Value

IList<string>

OutputChannel

Gets or sets the output channel the producer uses

public virtual IMessageChannel OutputChannel { get; set; }

Property Value

IMessageChannel

OutputChannelName

Gets or sets the output channel name the producer uses

public virtual string OutputChannelName { get; set; }

Property Value

string

SendTimeout

public virtual int SendTimeout { get; set; }

Property Value

int

ShouldCopyRequestHeaders

protected virtual bool ShouldCopyRequestHeaders { get; }

Property Value

bool

Methods

AddNotPropagatedHeaders(params string[])

Add headers that will not be copied from the inbound message if handler is configured to copy headers

public virtual void AddNotPropagatedHeaders(params string[] headers)

Parameters

headers string[]

the headers to not copy

CreateOutputMessage(object, IMessageHeaders)

protected virtual IMessage CreateOutputMessage(object output, IMessageHeaders requestHeaders)

Parameters

output object
requestHeaders IMessageHeaders

Returns

IMessage

ProduceOutput(object, IMessage)

protected virtual void ProduceOutput(object reply, IMessage requestMessage)

Parameters

reply object
requestMessage IMessage

SendOutput(object, object, bool)

protected virtual void SendOutput(object output, object replyChannelArg, bool useArgChannel)

Parameters

output object
replyChannelArg object
useArgChannel bool

SendOutputs(object, IMessage)

protected void SendOutputs(object reply, IMessage requestMessage)

Parameters

reply object
requestMessage IMessage

ShouldSplitOutput(IEnumerable)

protected virtual bool ShouldSplitOutput(IEnumerable reply)

Parameters

reply IEnumerable

Returns

bool

UpdateNotPropagatedHeaders(IList<string>, bool)

protected virtual void UpdateNotPropagatedHeaders(IList<string> headers, bool merge)

Parameters

headers IList<string>
merge bool