public void AddBadProducerWithConnectedClient(Client client) { BadProducer bad = new BadProducer(loggerService, "bad"); DictionaryOfThreads.Add("bad", new Thread(() => bad.Run((point) => loggerService.Info($"Function {point}")))); client.StartListenToBadProducer(bad); }
public void StartListenToBadProducer(BadProducer badProducer) { badProducer.onPointXProducer += this._onPointProducer; }