Метод CreateQueryTemplate(T) (String, String, CepStream(T))
Создает новый шаблон запроса с помощью выражения LINQ.
Пространство имен: Microsoft.ComplexEventProcessing
Сборка: Microsoft.ComplexEventProcessing (в Microsoft.ComplexEventProcessing.dll)
Синтаксис
public QueryTemplate CreateQueryTemplate<T>(
string queryTemplateName,
string description,
CepStream<T> streamDefinition
)
Параметры типа
- T
Параметры
- queryTemplateName
Тип: System. . :: . .String
Имя шаблона запроса в метаданных.
- description
Тип: System. . :: . .String
Описание шаблона запроса.
- streamDefinition
Тип: Microsoft.ComplexEventProcessing.Linq. . :: . .CepStream< (Of < ( <'T> ) > ) >
Определение шаблона запроса.
Возвращаемое значение
Тип: Microsoft.ComplexEventProcessing. . :: . .QueryTemplate
Новый создаваемый объект шаблона запроса.
Примеры
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);