ObservableCepStream.ToObservable<TPayload> Method (CepStream<TPayload>, StreamEventOrder)
Converts a stream of events to observable output with the specified event order by removing event headers and discarding CTI events.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing.Observable (in Microsoft.ComplexEventProcessing.Observable.dll)
Syntax
public static ICepObservable<TPayload> ToObservable<TPayload>(
this CepStream<TPayload> stream,
StreamEventOrder streamEventOrder
)
Type Parameters
- TPayload
Type of the event payload.
Parameters
- stream
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>
Stream of events to convert.
- streamEventOrder
Type: Microsoft.ComplexEventProcessing.StreamEventOrder
Order of the events in the output.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.ICepObservable<TPayload>
Observable output.
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).