public async Task <IHttpActionResult> ReceiveMessageA(FirstResponseInbound message) { _logger.Info($"Received message (a): {JsonConvert.SerializeObject(message)}"); var mapped = new FirstResponse { Balance = message.Balance, 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 HandleMessageA(FirstResponse message) { _logger.Info($"Forwarding request (type: {message.GetType().Name})"); await _subscriptionManager.Publish(QueueNames.InternalA, message); }