Ejemplo n.º 1
0
 /**
  * Utility function to verify that an entry is cacheable and not expired
  * @return true If the response can be used.
  */
 protected bool responseStillUsable(sResponse response)
 {
     if (response == null)
     {
         return(false);
     }
     return(response.getCacheExpiration() > DateTime.UtcNow.Ticks);
 }
Ejemplo n.º 2
0
 /**
  * Utility function to verify that an entry is cacheable and not expired
  * @return true If the response can be used.
  */
 protected bool responseStillUsable(sResponse response)
 {
     if (response == null)
     {
         return false;
     }
     return response.getCacheExpiration() > DateTime.UtcNow.Ticks;
 }