Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public TaskProcessor(BusSpace busSpace)
 {
     _busSpace = busSpace;
 }