ICepObservable<T>.Subscribe Method (IObserver<T>, String, String)

Extends the IObservable<T> interface to let you specify a query name and description for an observable event source.

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

Syntax

IDisposable Subscribe(
    IObserver<T> observer,
    string queryName,
    string queryDescription
)

Parameters

  • queryDescription
    Type: System.String
    Optional description of the query.

Return Value

Type: System.IDisposable
An extended version of the IObservable<T> interface.

Remarks

A query name can be used to find the appropriate query instance in the StreamInsight Event Flow Debugger when debugging. If you provide a null value for queryName, or if you call the Subscribe method of the base interface, then a unique name for the query is automatically generated.

The contract described by this interface is otherwise identical to the base IObservable<T> interface. For more information about the interface that ICepObservable<T> extends, see the documentation for the IObservable<T> interface in the MSDN Library.

See Also

Reference

ICepObservable<T> Interface

Subscribe Overload

Microsoft.ComplexEventProcessing.Linq Namespace