CepStream.ToIntervalEnumerable<TPayload> Method (CepStream<TPayload>, StreamEventOrder)
Converts a CepStream of interval events with the specified event order to an event sink that implements the IEnumerable interface.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static ICepEnumerable<IntervalEvent<TPayload>> ToIntervalEnumerable<TPayload>(
this CepStream<TPayload> stream,
StreamEventOrder streamEventOrder
)
Type Parameters
- TPayload
Type of the event payload.
Parameters
- stream
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>
The fully bound event source from which the enumerable event sink is created.
- streamEventOrder
Type: Microsoft.ComplexEventProcessing.StreamEventOrder
One of the enumeration values that specifies how events are ordered.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.ICepEnumerable<IntervalEvent<TPayload>>
An event sink that supports iteration.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type CepStream<TPayload>. 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
Calling the GetEnumerator method of the enumerable event sink initializes and starts a query. The query is deleted when the enumerator is disposed.
The ICepEnumerable<T> interface includes an overload of GetEnumerator that lets you specify a name and description for the query. These additional properties are useful for debugging.
For more information about the data types that are supported in the payload of an event, see Creating Event Types.