CepStream<TPayload>.ToQuery Method (String, String, Type, Object, EventShape, StreamEventOrder, Boolean)
Creates a query from the stream bound to an output adapter. The output adapter is specified by the type of the adapter factory and the configuration object. The application this query will run in is implied by the definition of the stream. The query can be specified to be resilient.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public Query ToQuery(
string queryName,
string description,
Type adapterFactoryType,
object adapterConfig,
EventShape eventShape,
StreamEventOrder eventOrder,
bool isResilient
)
public:
Query^ ToQuery(
String^ queryName,
String^ description,
Type^ adapterFactoryType,
Object^ adapterConfig,
EventShape eventShape,
StreamEventOrder eventOrder,
bool isResilient
)
member ToQuery :
queryName:string *
description:string *
adapterFactoryType:Type *
adapterConfig:Object *
eventShape:EventShape *
eventOrder:StreamEventOrder *
isResilient:bool -> Query
Public Function ToQuery (
queryName As String,
description As String,
adapterFactoryType As Type,
adapterConfig As Object,
eventShape As EventShape,
eventOrder As StreamEventOrder,
isResilient As Boolean
) As Query
Parameters
queryName
Type: System.StringThe name of the query.
description
Type: System.StringThe description of the query.
adapterFactoryType
Type: System.TypeThe type of the output adapter factory.
adapterConfig
Type: System.ObjectThe configuration for the output adapter factory.
eventShape
Type: Microsoft.ComplexEventProcessing.EventShapeThe expected event shape that is going to be sent to the output adapter.
eventOrder
Type: Microsoft.ComplexEventProcessing.StreamEventOrderThe expected event order.
isResilient
Type: System.Booleantrue 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
ToQuery Overload
CepStream<TPayload> Class
Microsoft.ComplexEventProcessing.Linq Namespace
Return to top