public static void SendStockMessage(QueueMessage queueMessage, string queue) { using (var wcfClient = new StockServiceClient()) { var stock = wcfClient.GetStock(queueMessage.Message); if (stock.Success) { wcfClient.SendMessageAsync($"{stock.Symbol} quote is {stock.CloseTyped.ToString("C2")} per share", queue, null, queueMessage.UserName); } else { wcfClient.SendMessageAsync(stock.ErrorMessage, queue, null, queueMessage.UserName); } wcfClient.Close(); } }