i am sending data using HttpClient like below
using (var streamWriter = new StreamWriter(request.GetRequestStream())) { streamWriter.Write(JsonConvert.SerializeObject(message).ToArray()); }
what would be the web api controller method parameter
public IHttpActionResult ReceivedMessages([FromBody] Queue<Message> messages)
request.Content.ReadAsStringAsync().Result