public static void Main(string[] args) { IChildRepository childRepo = new ChildRepository(); IChallengeRepository challengeRepo = new ChallengeRepository(); IEmployeesRepository employeesRepo = new EmployeesRepository(); IEntriesRepository entriesRepo = new EntriesRepository(childRepo, challengeRepo); IService service = new Service(childRepo, challengeRepo, employeesRepo, entriesRepo); SerialServer server = new SerialServer("127.0.0.1", 55555, service); server.Start(); Console.WriteLine("Server started ..."); }
public static void Main(string[] args) { log4net.Config.XmlConfigurator.Configure(); IUserRepository userRepo = new UserDbRepository(); ITicketRepository ticketRepo = new TicketDbRepository(); IShowRepository showRepo = new ShowDbRepository(); IService serviceImpl = new Service(userRepo, ticketRepo, showRepo); Console.WriteLine("userRepo size : " + userRepo.FindAll().Count); SerialServer server = new SerialServer("127.0.0.1", 55555, serviceImpl); server.Start(); Console.WriteLine("Server started ..."); }
public static void Main(string[] args) { XmlConfigurator.Configure(new System.IO.FileInfo("App.config")); IRepositoryExcursie repositoryExcursie = new RepositoryExcursie(); IRepositoryRezervare repositoryRezervare = new RepositoryRezervare(); IRepositoryUser repositoryUser = new RepositoryUser(); IService serviceImpl = new Service(repositoryRezervare, repositoryUser, repositoryExcursie); // IChatServer serviceImpl = new ChatServerImpl(); AbstractServer server = new SerialServer("127.0.0.1", 55555, serviceImpl); server.Start(); Console.WriteLine("Server started ..."); //Console.WriteLine("Press <enter> to exit..."); Console.ReadLine(); }