Example #1
0
 public void Binds(flow f)
 {
     Di = BroadCast.LinkTo(f.m_buffer, new DataflowLinkOptions()
     {
         PropagateCompletion = true
     });
 }
Example #2
0
 public void bind(flow f)
 {
     //限制流量
     // new DataflowBlockOptions() { BoundedCapacity = 2 };
     //传递返回结束
     Di = m_buffer.LinkTo(f.m_buffer, new DataflowLinkOptions()
     {
         PropagateCompletion = true
     });
 }
Example #3
0
 private static void PostResult(string guid, string str)
 {
     if (BinData.Dic.ContainsKey(guid))
     {
         flow fw   = BinData.Dic[guid];
         flow flow = new flow();
         fw.bind(flow);
         fw.m_buffer.Post <object>(str);
         fw.Close();
     }
 }
Example #4
0
 /// <summary>
 /// 程序名
 /// </summary>
 /// <param name="bus">数据总线</param>
 /// <param name="Name">程序名,必须相同</param>
 public BinData(IEventBus bus, string Name)
 {
     EventBus        = bus;
     CountGlipe      = new flow();
     ApplicationName = Name;
 }