本文整理汇总了C#中Processor.key_correlator_replay方法的典型用法代码示例。如果您正苦于以下问题:C# Processor.key_correlator_replay方法的具体用法?C# Processor.key_correlator_replay怎么用?C# Processor.key_correlator_replay使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Processor
的用法示例。
在下文中一共展示了Processor.key_correlator_replay方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
//.........这里部分代码省略.........
scheduler = Scheduler.Immediate;
if (args.Length >= 2)
{
if (args[1] == "demo1")
disposable = proc.demo1(participant, scheduler);
if (args[1] == "demo2")
disposable = proc.demo2(participant, scheduler);
if (args[1] == "demo3")
disposable = proc.demo3(participant);
if (args[1] == "demo4")
disposable = proc.demo4(participant);
if (args[1] == "demo5")
disposable = proc.demo5(participant, scheduler);
if (args[1] == "forward")
disposable = proc.forward(participant);
else if (args[1] == "forward_short")
disposable = proc.forward_short(participant);
else if (args[1] == "forward_shortest")
disposable = proc.forward_shortest(participant);
else if (args[1] == "swap")
disposable = proc.swap(participant);
else if (args[1] == "swap_shortest")
disposable = proc.swap(participant);
else if (args[1] == "flower")
disposable = proc.flower(participant);
else if (args[1] == "instance_forward")
disposable = proc.instance_forward(participant);
else if (args[1] == "aggregator")
disposable = proc.aggregator(participant);
else if (args[1] == "collisions_combinelatest")
disposable = proc.collisions_combinelatest(participant, scheduler);
else if (args[1] == "collisions")
disposable = proc.collisions(participant, scheduler);
else if (args[1] == "single_circle_correlator")
disposable = proc.single_circle_correlator(participant);
else if (args[1] == "selectmany_correlator")
disposable = proc.selectmany_correlator(participant, false);
else if (args[1] == "selectmany_correlator_linq")
disposable = proc.selectmany_correlator(participant, true);
else if (args[1] == "selectmany_groupby_correlator")
disposable = proc.selectmany_groupby_correlator(participant);
else if (args[1] == "many_circle_correlator")
disposable = proc.many_circle_correlator(participant, scheduler);
else if (args[1] == "circle_zip_correlator")
disposable = proc.circle_zip_correlator(participant);
else if (args[1] == "splitterDelayNAverageWindow")
disposable = proc.splitterDelayNAverageWindow(participant);
else if (args[1] == "splitterDelayNAverage")
disposable = proc.splitterDelayNAverage(participant);
else if (args[1] == "timeWindowAggregator")
disposable = proc.timeWindowAggregator(participant, scheduler);
else if (args[1] == "key_correlator_flat")
disposable = proc.key_correlator_flat(participant);
else if (args[1] == "key_correlator_grouped")
disposable = proc.key_correlator_grouped(participant);
else if (args[1] == "key_correlator_replay")
disposable = proc.key_correlator_replay(participant, false);
else if (args[1] == "key_correlator_replay_linq")
disposable = proc.key_correlator_replay(participant, true);
else if (args[1] == "key_correlator_zip4")
disposable = proc.key_correlator_zip4(participant);
else if (args[1] == "key_correlator_zipN")
{
int n = 8;
if (args.Length == 2)
n = Int32.Parse(args[1]);
disposable = proc.key_correlator_zipN(participant, n);
}
else if (args[1] == "key_correlator_dynamic")
disposable = proc.key_correlator_dynamic(participant, scheduler);
else if (args[1] == "once")
disposable = proc.once(participant);
else if (args[1] == "groupJoinInfiniteInner")
disposable = proc.groupJoinInfiniteInner();
}
for (; disposable != null; )
{
ConsoleKeyInfo info = Console.ReadKey(true);
if (info.Key == ConsoleKey.Enter)
{
disposable.Dispose();
break;
}
}
}
catch (DDS.Exception e)
{
Console.WriteLine("DDS Exception {0}", e);
}
catch (Exception ex)
{
Console.WriteLine("Generic Exception {0}", ex);
}
Console.WriteLine("Quitting...");
System.Threading.Thread.Sleep(1000);
DefaultParticipant.Shutdown();
}