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
stringthe name of the binding target (e.g. channel)
copyHeaders
boolwhen 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
stringthe name of the binding target (e.g. channel)
condition
stringexpression language condition that must be met by all items dispatched to this method
copyHeaders
boolwhen 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
CopyHeaders
Gets or sets a value indicating whether to copy incoming headers to outgoing messages
public virtual bool CopyHeaders { get; set; }
Property Value
Target
Gets or sets the binding target (e.g. channel)
public virtual string Target { get; set; }