private static void Main() { var busSpase = new BusSpace(); busSpase.CreateQueues(); var taskProcessor = new TaskProcessor(busSpase); NeliburRestService.Configure(x => x.Bind <TaskCommand, TaskProcessor>(() => taskProcessor)); _service = new WebServiceHost(typeof(JsonServicePerCall)); _service.Open(); Console.WriteLine("Task Service is running"); Console.WriteLine("Press any key to exit"); Console.ReadKey(); _service.Close(); }
public TaskProcessor(BusSpace busSpace) { _busSpace = busSpace; }