CepStream<TPayload>.ToPublishedStreamQuery Method (Uri, String, String, EventShape, StreamEventOrder)
Creates a query with an output bound to an explicitly named published stream. The output of the query can be consumed through dynamic query composition. Only one query can produce events for a published stream at any given time.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public Query ToPublishedStreamQuery(
Uri publishedStreamName,
string queryName,
string description,
EventShape eventShape,
StreamEventOrder eventOrder
)
Parameters
- publishedStreamName
Type: System.Uri
Name of the published stream.
- queryName
Type: System.String
Name of the query.
- description
Type: System.String
Description of the query.<
- eventShape
Type: Microsoft.ComplexEventProcessing.EventShape
Shape of the query output stream.
- eventOrder
Type: Microsoft.ComplexEventProcessing.StreamEventOrder
Expected event order.
Return Value
Type: Microsoft.ComplexEventProcessing.Query
The newly created query.
Remarks
Multiple queries can consume events from a published stream at the same time; however, only one query can produce events for a published stream at any given time.