Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestfulObject&lt;T&gt;"/> class.
 /// </summary>
 /// <param name="domainObject">The item instance.</param>
 /// <param name="httpVerb">The HTTP verb.</param>
 /// <param name="uriEndpoint">The URI endpoint.</param>
 public RestfulObject(T domainObject, string httpVerb, string uriEndpoint)
     : this(domainObject, httpVerb, uriEndpoint, CachePeriod.Default())
 {
 }
Esempio n. 2
0
 /// <summary>
 /// Sets the cache period to the default value.
 /// </summary>
 /// <returns>The current UTC time plus one month.</returns>
 public static DateTime Default()
 {
     return(CachePeriod.OneMonth());
 }