public JsonResult Login([FromBody] DomainUserLogCommand command) { var user = _gate.Call <DomainUserLogCommand, DomainUserDto>(command); _authorizeHandler.AuthorizeUser(user, HttpContext); return(Json(user)); }
public void Call <TCommand>(TCommand command) { using (_logger.BeginScope(command)) try { _logger.LogInformation($"Invoking command {typeof(TCommand)} with arguments {JsonConvert.SerializeObject(command)}"); _commandGateway.Call(command); } catch (Exception ex) { _logger.LogError(ex, ex.Message); throw; } }
public void Create([FromBody] CreateBacklogCommand command) { _gate.Call(command); }