public void Start() { cts = new CancellationTokenSource(); emu = new WFQYDBemul(StreamSourceCfg.Get(), Id, cts.Token); emu.Start(); }
private void Ts_OnClientConnected(object sender, TcpServerStreamSource e) { var emu = new WFQYDBemul(e, new byte[] { 1, 2, 3, 4 }, cts.Token); emu.Start(); wFQYDBemuls.Add(emu); emu.Dead += (sender, args) => wFQYDBemuls.Remove((WFQYDBemul)sender); }