public ServerImpl(OperatoriServices operatoriServices, CurseServices curseServices, RezervariServices rezervariServices, ClientiServices clientiServices) { this.operatoriServices = operatoriServices; this.curseServices = curseServices; this.rezervariServices = rezervariServices; this.clientiServices = clientiServices; loggedClients = new Dictionary <string, IObserver>(); }
public static void Main(string[] args) { OperatoriServices operatoriServices = new OperatoriServices(); ClientiServices clientiServices = new ClientiServices(); CurseServices curseServices = new CurseServices(); RezervariServices rezervariServices = new RezervariServices(); IServer serviceImpl = new ServerImpl(operatoriServices, curseServices, rezervariServices, clientiServices); // IChatServer serviceImpl = new ChatServerImpl(); SerialChatServer server = new SerialChatServer("127.0.0.1", 55555, serviceImpl); server.Start(); Console.WriteLine("Server started ..."); //Console.WriteLine("Press <enter> to exit..."); Console.ReadLine(); }
public Login() { InitializeComponent(); operatoriServices = new OperatoriServices(); }