Beispiel #1
0
 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>();
 }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public Login()
 {
     InitializeComponent();
     operatoriServices = new OperatoriServices();
 }