コード例 #1
0
        public JsonResult Login([FromBody] DomainUserLogCommand command)
        {
            var user = _gate.Call <DomainUserLogCommand, DomainUserDto>(command);

            _authorizeHandler.AuthorizeUser(user, HttpContext);

            return(Json(user));
        }
コード例 #2
0
 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;
         }
 }
コード例 #3
0
 public void Create([FromBody] CreateBacklogCommand command)
 {
     _gate.Call(command);
 }