コード例 #1
0
        public IActionResult Login(LoginRequest request)
        {
            var messageClientId = new MessageClientId(request.ClientId);
            var messageChainId  = new MessageChainId(Guid.NewGuid().ToString());

            _logger.Info(messageClientId, messageChainId, String.Format("Запрос Login. {0}", JsonSerializer.Serialize(request)));
            var inputMessage = new LoginInputMessage(messageClientId, messageChainId)
            {
                Login    = request.Login,
                Password = request.Password
            };

            _logger.InputMessageCreated(inputMessage);
            _queueManager.SendMessage(AuthSettings.AuthInputQueue, inputMessage);

            return(Ok());
        }