예제 #1
0
        static void Main()
        {
            String            connectionString   = @"Data Source= D:\an 2 semestru 2\mpp\tema1-java\AgentieTurism.db; Version = 3";
            RepositoryAngajat repositoryAngajat  = new RepositoryAngajat(connectionString);
            RepositoryBilet   repositoryBilet    = new RepositoryBilet(connectionString);
            RepositoryZbor    repositoryZbor     = new RepositoryZbor(connectionString);
            ServicesServer    ctrlServicesServer = new ServicesServer(repositoryBilet, repositoryZbor, repositoryAngajat);



            SerialChatServer server = new SerialChatServer("127.0.0.1", 55555, ctrlServicesServer);

            server.Start();
            Console.WriteLine("Server started ...");
            //Console.WriteLine("Press <enter> to exit...");
            Console.ReadLine();
        }
예제 #2
0
 public ServicesServer(RepositoryBilet repositoryBilet, RepositoryZbor repositoryZbor, RepositoryAngajat repositoryAngajat)
 {
     this.repositoryZbor    = repositoryZbor;
     this.repositoryBilet   = repositoryBilet;
     this.repositoryAngajat = repositoryAngajat;
 }