My windows form application code is given below, it is just calling web api using token.
using (var client = new HttpClient())