Siva Chandran

Siva Chandran

  • NA
  • 12
  • 1.4k

Windows Phone 8.1 WCF Service Not Refreshing

Dec 21 2016 7:55 AM

Hi I am using WCF service in Windows phone 8.1 app . WCF service not returning latest data that saved, in Windows Phone . Instead it shows data from cache .Could any one help on this.

 

HttpClient httpClient = new HttpClient();

httpClient.DefaultRequestHeaders.IfModifiedSince = DateTime.UtcNow;

HttpRequestMessage request = new HttpRequestMessage(methodRequestType == "GET" ? HttpMethod.Get : HttpMethod.Post, ServiceURI);

HttpResponseMessage response = await httpClient.SendAsync(request);

Thanks