public async Task <IHttpActionResult> ReceiveMessageB(SecondResponseInbound message) { _logger.Info($"Received message (b): {JsonConvert.SerializeObject(message)}"); var mapped = new SecondResponse { IsInCredit = message.IsInCredit, Id = Guid.Parse(message.SomeIdentifier) }; const string queue = QueueNames.Inbound; _logger.Info($"Publishing notification to queue '{queue}'"); await _subscriptionManager.Publish(queue, mapped); return(Ok()); }
public async Task <IHttpActionResult> ReceiveMessageB(SecondRequestOutbound request) { _logger.Info($"Received message (b): {JsonConvert.SerializeObject(request)}"); var response = new SecondResponseInbound { IsInCredit = true, SomeIdentifier = request.SomeIdentifier }; const string url = "http://localhost:9023/api/messages/b"; _logger.Info($"Sending response - POST {url}"); await _httpClient.PostAsJsonAsync(url, response); return(Ok()); }