DynamicQueryCompositionExtensions.ToStream<TPayload> Method (Query, String, AdvanceTimeSettings)
Creates a new input stream with given name and advance time settings bound to the output event stream of an existing query.
Namespace: Microsoft.ComplexEventProcessing
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static CepStream<TPayload> ToStream<TPayload>(
this Query query,
string streamName,
AdvanceTimeSettings advanceTimeSettings
)
Type Parameters
- TPayload
Type of the payload for the new stream.
Parameters
- query
Type: Microsoft.ComplexEventProcessing.Query
Existing query.
- streamName
Type: System.String
Name of the input stream in the query template.
- advanceTimeSettings
Type: Microsoft.ComplexEventProcessing.AdvanceTimeSettings
Advance time settings for the stream.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>
An instance of the CepStream class that can be used to create new queries.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Query. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.105) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.105).
Remarks
The given stream name can be used to bind with a query binder, and to retrieve diagnostics.
The specified AdvanceTimeSettings object provides the option to advance application time in addition to the current time increment events in the output stream of the existing query.