public void Binds(flow f) { Di = BroadCast.LinkTo(f.m_buffer, new DataflowLinkOptions() { PropagateCompletion = true }); }
public void bind(flow f) { //限制流量 // new DataflowBlockOptions() { BoundedCapacity = 2 }; //传递返回结束 Di = m_buffer.LinkTo(f.m_buffer, new DataflowLinkOptions() { PropagateCompletion = true }); }
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(); } }
/// <summary> /// 程序名 /// </summary> /// <param name="bus">数据总线</param> /// <param name="Name">程序名,必须相同</param> public BinData(IEventBus bus, string Name) { EventBus = bus; CountGlipe = new flow(); ApplicationName = Name; }