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)]
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
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
targetstringthe name of the binding target (e.g. channel)
copyHeadersboolwhen 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
targetstringthe name of the binding target (e.g. channel)
conditionstringexpression language condition that must be met by all items dispatched to this method
copyHeadersboolwhen 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; }