This topic has not yet been rated - Rate this topic

Application.CreateQueryTemplate<T> Method (String, String, CepStream<T>)

Creates a new query template from a LINQ expression.

Namespace:  Microsoft.ComplexEventProcessing
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
public QueryTemplate CreateQueryTemplate<T>(
	string queryTemplateName,
	string description,
	CepStream<T> streamDefinition
)

Type Parameters

T

Parameters

queryTemplateName
Type: System.String
Name for the query template in metadata.
description
Type: System.String
Description of the query template.
streamDefinition
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<T>
Query template definition.

Return Value

Type: Microsoft.ComplexEventProcessing.QueryTemplate
New query template object being created.
var inputstream = CepStream{RawData}.Create("filterInput");
            var filtered = from e in inputstream
                           where e.Value > 30
                           select e;
            QueryTemplate filterQT = application.CreateQueryTemplate("filterLogic", "Description of the query template", filtered);
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.