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.Require("solution", "id"); river.Register(new SolutionSelection()); }
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.Require("user_id"); river.Forbid("solution", "level"); river.Register(new JoiningOffer()); }