Class Connector<T>
A pass-through component, that can relay messages from one pipeline to another and can be used when writing composite components via subpipelines. The composite component can create input and output connectors instead of receivers.
Namespace: Microsoft.Psi.Components
Assembly: Microsoft.Psi.dll
Syntax
public sealed class Connector<T> : object, IProducer<T>, IConsumer<T>, IConnector
Type Parameters
Name | Description |
---|---|
T | The message type. |
Constructors
View SourceConnector(Pipeline, Pipeline, String, Boolean)
Initializes a new instance of the Connector<T> class.
Declaration
public Connector(Pipeline from, Pipeline to, string name = null, bool preserveEnvelope = false)
Parameters
Type | Name | Description |
---|---|---|
Pipeline | from | The source pipeline. |
Pipeline | to | The target pipeline. |
String | name | An optional name for the connector. |
System.Boolean | preserveEnvelope | An optional parameter that specifies whether or not the source message envelopes should be preserved. |
Connector(Pipeline, String, Boolean)
Initializes a new instance of the Connector<T> class.
Declaration
public Connector(Pipeline pipeline, string name = null, bool preserveEnvelope = false)
Parameters
Type | Name | Description |
---|---|---|
Pipeline | pipeline | The pipeline to add the component to. |
String | name | An optional name for the connector. |
System.Boolean | preserveEnvelope | An optional parameter that specifies whether or not the source message envelopes should be preserved. |
Properties
View SourceIn
Gets the connector input.
Declaration
public Receiver<T> In { get; }
Property Value
Type | Description |
---|---|
Receiver<T> |
Out
Gets the connector output.
Declaration
public Emitter<T> Out { get; }
Property Value
Type | Description |
---|---|
Emitter<T> |
Methods
View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |