コード例 #1
0
        public async Task <IActionResult> AuthenticateAsync(LoginUserDto loginDto, CancellationToken token)
        {
            var remoteAddress = _httpService.GetRemoteIpAddress(Request.HttpContext.Connection.RemoteIpAddress);
            var response      = await _mediator.Send(new LoginUserRequest(loginDto, remoteAddress), token);

            return(new LoginUserPresenter(response).ToIActionResult());
        }