CepStream<TPayload>.ToQuery Method (Application, String, String, Type, Object, EventShape, StreamEventOrder)
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.
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
)
Parameters
- application
Type: Microsoft.ComplexEventProcessing.Application
Application which will host the query.
- queryName
Type: System.String
Name of the query.
- description
Type: System.String
Description of the query.
- adapterFactoryType
Type: System.Type
Type of the output adapter factory.
- adapterConfig
Type: System.Object
Configuration for the output adapter factory
- eventShape
Type: Microsoft.ComplexEventProcessing.EventShape
Expected event shape that is going to be sent to the output adapter.
- eventOrder
Type: Microsoft.ComplexEventProcessing.StreamEventOrder
Expected event order.
Return Value
Type: Microsoft.ComplexEventProcessing.Query
A runnable query that the user can then start, stop, or otherwise manage.