public void AddAcceptor(Acceptor a) { if (!Acceptors.TryAdd(a.Name, a)) { throw new Exception($"Duplicate Acceptor={a.Name}"); } a.SetService(Service); }
public void RemoveAcceptor(Acceptor a) { Acceptors.TryRemove(a.Name, out var _); }