示例#1
0
        static void Main(string[] args)
        {
            string host = args[0];
            string port = args[1];

            var rapidsConnection = new RabbitMqRapids("monitor_in_csharp", host, port);
            var river            = new River(rapidsConnection);

            river.RequireValue("need", "car_rental_offer");
            river.Forbid("solution");
            river.Register(new SolutionProvider());
        }