Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ObservableCepStream.ToIntervalObservable<TPayload> Method (CepStream<TPayload>, StreamEventOrder)

Converts a CepStream of interval events with the specified event order to an event sink that implements the IObservable interface.

Namespace:  Microsoft.ComplexEventProcessing.Linq
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

public static ICepObservable<IntervalEvent<TPayload>> ToIntervalObservable<TPayload>(
	this CepStream<TPayload> stream,
	StreamEventOrder streamEventOrder

Type Parameters


Type of the event payload.


Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>
The fully bound event source from which the observable event sink is created.
Type: Microsoft.ComplexEventProcessing.StreamEventOrder
One of the enumeration values that specifies how events are ordered.

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.ICepObservable<IntervalEvent<TPayload>>
An event sink that supports observation.

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://technet.microsoft.com/en-us/library/bb384936.aspx or https://technet.microsoft.com/en-us/library/bb383977.aspx.

Calling the Subscribe method of the observable event sink initializes and starts a query. The query is deleted when the subscription is disposed.

The ICepObservable<T> interface includes an overload of Subscribe 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 Event Structure.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft