//public ServerAppThread MasterThread => m_thread; public ServerBase(string name, int port) { Name = name; Clients = new List <TClient>(); m_thread = ServerApp.Container.Resolve <ServerAppThread>(); //TODO: DI with ctor m_acceptor = new SockAcceptorEx(IPAddress.Any, port); m_acceptor.OnClientAccepted += OnClientAccepted; }
public CTimer(ServerAppThread thread) { m_thread = thread; Running = false; }