Пример #1
0
        private static void Main()
        {
            var mc           = CreateAgentContainer();
            var agentBuilder = new AgentBuilder(mc);

            var serviceProvider = agentBuilder.Create <ServiceFinderAgent>().Build();

            serviceProvider.start();

            Thread.Sleep(1000);

            var hotelAgent = agentBuilder.Create <HotelProviderAgent>().Build();

            hotelAgent.start();

            var transportAgent = agentBuilder.Create <TransportProviderAgent>().Build();

            transportAgent.start();

            var attractionAgent = agentBuilder.Create <TouristAttractionsAgent>().Build();

            attractionAgent.start();

            Thread.Sleep(1000);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var client = agentBuilder.Create <ClientSearchVacantionPackageAgent>().Build();

            client.start();
        }
Пример #2
0
        private static void Main(string[] args)
        {
            var mc           = CreateAgentContainer();
            var agentBuilder = new AgentBuilder(mc);

            var serviceProvider = agentBuilder.Create <ServiceFinderAgent>().Build();

            serviceProvider.start();

            Thread.Sleep(2000);
            Console.WriteLine();

            var hotelAgent = agentBuilder.Create <HotelProviderAgent>().Build();

            hotelAgent.start();

            var transportAgent = agentBuilder.Create <TransportProviderAgent>().Build();

            transportAgent.start();

            Thread.Sleep(2000);
            Console.WriteLine();

            var client = agentBuilder.Create <ClientSearchVacantionPackageAgent>().Build();

            client.start();
        }