Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linq StreamInsight 2.1适配器到观察者_Linq_Biztalk_Streaminsight - Fatal编程技术网

Linq StreamInsight 2.1适配器到观察者

Linq StreamInsight 2.1适配器到观察者,linq,biztalk,streaminsight,Linq,Biztalk,Streaminsight,我一直在尝试实现以下适配器以将StreamInsight与BizTalk连接: 最后,他执行以下操作将查询绑定到适配器: var allQuery = callTypeThreshold.ToQuery( myApp, "Threshold Events", string.Empty, typeof(WebOutputFacto

我一直在尝试实现以下适配器以将StreamInsight与BizTalk连接:

最后,他执行以下操作将查询绑定到适配器:

var allQuery = callTypeThreshold.ToQuery(
                     myApp,
                     "Threshold Events",
                     string.Empty,
                     typeof(WebOutputFactory),
                     webAdapterBizTalkConfig,
                     EventShape.Point,
                     StreamEventOrder.FullyOrdered);
现在,如果我没有弄错的话,这在StreamInsight 2.1中已经不起作用了,我也不知道该怎么做。有人能帮我吗?
提前谢谢

您可以将传统适配器模型与较新的StreamInsight 2.1 API一起使用。要将输入适配器用作源,需要使用此重载

因此,您的代码将如下所示:

var sourceStreamable = Application.DefineStreamable<TPayload>(
typeof(WebInputFactory),
webAdapterBizTalkConfig,
EventShape.Point,
AdvanceTimeSettings.IncreasingStartTime);
var sink = Application.DefineStreamableSink<TPayload>(
typeof(WebOutputFactory),
webAdapterBizTalkConfig,
EventShape.Point,
StreamEventOrder.FullyOrdered);
var sourceStreamable=Application.DefineStreamable(
类型(WebInputFactory),
webAdapterBizTalkConfig,
EventShape.Point,
高级时间设置。增加开始时间);
现在,如果要将输出适配器用作接收器,则需要使用的重载之一

因此,代码将如下所示:

var sourceStreamable = Application.DefineStreamable<TPayload>(
typeof(WebInputFactory),
webAdapterBizTalkConfig,
EventShape.Point,
AdvanceTimeSettings.IncreasingStartTime);
var sink = Application.DefineStreamableSink<TPayload>(
typeof(WebOutputFactory),
webAdapterBizTalkConfig,
EventShape.Point,
StreamEventOrder.FullyOrdered);
var sink=Application.DefineStreamableSink(
类型(WebOutputFactory),
webAdapterBizTalkConfig,
EventShape.Point,
流式通风机(完全通风);
然后只需使用bind()方法将streamable绑定到接收器,然后使用Run()启动流程,就可以开始了