Table of Contents

Class StreamListenerAttribute

Namespace
Steeltoe.Stream.Attributes
Assembly
Steeltoe.Stream.Abstractions.dll

Annotation that marks a method to be a listener to inputs declared via EnableBinding

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class StreamListenerAttribute : Attribute
Inheritance
StreamListenerAttribute
Inherited Members

Constructors

StreamListenerAttribute(string, bool)

Initializes a new instance of the StreamListenerAttribute class.

public StreamListenerAttribute(string target, bool copyHeaders = true)

Parameters

target string

the name of the binding target (e.g. channel)

copyHeaders bool

when true, copy incoming headers to any outgoing messages

StreamListenerAttribute(string, string, bool)

Initializes a new instance of the StreamListenerAttribute class.

public StreamListenerAttribute(string target, string condition, bool copyHeaders = true)

Parameters

target string

the name of the binding target (e.g. channel)

condition string

expression language condition that must be met by all items dispatched to this method

copyHeaders bool

when true, copy incoming headers to any outgoing messages

Properties

Condition

Gets or sets the expression language condition that must be met by all items dispatched to this method

public virtual string Condition { get; set; }

Property Value

string

CopyHeaders

Gets or sets a value indicating whether to copy incoming headers to outgoing messages

public virtual bool CopyHeaders { get; set; }

Property Value

bool

Target

Gets or sets the binding target (e.g. channel)

public virtual string Target { get; set; }

Property Value

string