当前位置: 首页>>代码示例>>C#>>正文


C# Processor.key_correlator_dynamic方法代码示例

本文整理汇总了C#中Processor.key_correlator_dynamic方法的典型用法代码示例。如果您正苦于以下问题:C# Processor.key_correlator_dynamic方法的具体用法?C# Processor.key_correlator_dynamic怎么用?C# Processor.key_correlator_dynamic使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Processor的用法示例。


在下文中一共展示了Processor.key_correlator_dynamic方法的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();
    }
开发者ID:kharesp,项目名称:rticonnextdds-reactive,代码行数:101,代码来源:rxddstest.cs


注:本文中的Processor.key_correlator_dynamic方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。