CepStream<TPayload>.ToQuery Method (Application, String, String, Type, Object, EventShape, StreamEventOrder, Boolean)

Creates a query from the stream bound to an output adapter running in the specified application. The output adapter is specified by the type of the adapter factory and the configuration object. The query can be specified to be resilient.

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

Syntax

public Query ToQuery(
    Application application,
    string queryName,
    string description,
    Type adapterFactoryType,
    Object adapterConfig,
    EventShape eventShape,
    StreamEventOrder eventOrder,
    bool isResilient
)

Parameters

  • adapterFactoryType
    Type: System.Type
    Type of the output adapter factory.
  • adapterConfig
    Type: System.Object
    Configuration for the output adapter factory
  • isResilient
    Type: System.Boolean
    true if the query is resilient; otherwise, false.

Return Value

Type: Microsoft.ComplexEventProcessing.Query
A runnable query that the user can then start, stop, or otherwise manage, and that is resilient when the value of isResilient is true.

Remarks

For more information, see Building Resilient StreamInsight Applications.

See Also

Reference

CepStream<TPayload> Class

ToQuery Overload

Microsoft.ComplexEventProcessing.Linq Namespace