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)
Syntax
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.
Examples
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);