CepStream.ToPointEnumerable<TPayload> Method (CepStream<TPayload>)
Converts a CepStream of point events to an event sink that implements the IEnumerable interface. The order of events is FullyOrdered.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static ICepEnumerable<PointEvent<TPayload>> ToPointEnumerable<TPayload>(
this CepStream<TPayload> stream
)
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.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.ICepEnumerable<PointEvent<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.