Ejemplo n.º 1
0
        protected override void ProcessItem(ClientProblem wrapper)
        {
            var state = new ProblemState();

            try
            {
                wrapper.LogStart(Logger);

                state = Service.Spawn(wrapper.Problem);

                Task.Delay(2000).Wait();

                _ = FireCallback(wrapper, state, "updated");

                state.Log(Logger);
            }
            finally
            {
                ActiveIds.Remove(wrapper.Id);
            }
        }
Ejemplo n.º 2
0
 public IActionResult Updated([FromBody] ProblemState model)
 {
     model.Log(Logger);
     return(Ok());
 }