Table of Contents

Interface IHeaderChannelRegistry

Namespace
Steeltoe.Integration.Support.Channel
Assembly
Steeltoe.Integration.Abstractions.dll

Implementations convert a channel to a name, retaining a reference to the channel keyed by the name.

[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public interface IHeaderChannelRegistry

Methods

ChannelNameToChannel(string)

Converts the channel name back to a MessageChannel (if it is registered)

IMessageChannel ChannelNameToChannel(string name)

Parameters

name string

the channel name

Returns

IMessageChannel

The channel, or null if there is no channel registered with the name.

ChannelToChannelName(object)

Converts the channel to a name (String). If the channel is not a MessageChannel, it is returned unchanged.

object ChannelToChannelName(object channel)

Parameters

channel object

the channel

Returns

object

the channel name or the channel if not a MessageChannel

ChannelToChannelName(object, long)

Converts the channel to a name (String). If the channel is not a MessageChannel, it is returned unchanged.

object ChannelToChannelName(object channel, long timeToLive)

Parameters

channel object

the channel

timeToLive long

how long in milliseconds the channel mapping should remain in registry

Returns

object

the channel name or the channel if not a MessageChannel