public NetworkHandler(int port, NotesStorage notesStorage, UserStorage userStorage) { this.port = port; this.notesStorage = notesStorage; this.userStorage = userStorage; clients = new Dictionary<TcpClient, NetworkUser>(); }
static void Main(string[] args) { UserStorage userStorage = new UserStorage("ololo"); NotesStorage notesStorage = new NotesStorage(); NetworkHandler hndlr = new NetworkHandler(5555, notesStorage, userStorage); hndlr.StartServer(); }