Class StreamListenerAttribute
Annotation that marks a method to be a listener to inputs declared via EnableBinding
Inheritance
System.Object
StreamListenerAttribute
Namespace: Steeltoe.Stream.Attributes
Assembly: Steeltoe.Stream.Abstractions.dll
Syntax
public class StreamListenerAttribute : Attribute
Constructors
| Edit this page View SourceStreamListenerAttribute(String, Boolean)
Initializes a new instance of the StreamListenerAttribute class.
Declaration
public StreamListenerAttribute(string target, bool copyHeaders = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | target | the name of the binding target (e.g. channel) |
System.Boolean | copyHeaders | when true, copy incoming headers to any outgoing messages |
StreamListenerAttribute(String, String, Boolean)
Initializes a new instance of the StreamListenerAttribute class.
Declaration
public StreamListenerAttribute(string target, string condition, bool copyHeaders = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | target | the name of the binding target (e.g. channel) |
System.String | condition | expression language condition that must be met by all items dispatched to this method |
System.Boolean | copyHeaders | when true, copy incoming headers to any outgoing messages |
Properties
| Edit this page View SourceCondition
Gets or sets the expression language condition that must be met by all items dispatched to this method
Declaration
public virtual string Condition { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CopyHeaders
Gets or sets a value indicating whether to copy incoming headers to outgoing messages
Declaration
public virtual bool CopyHeaders { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Target
Gets or sets the binding target (e.g. channel)
Declaration
public virtual string Target { get; set; }
Property Value
Type | Description |
---|---|
System.String |