Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Preconditions" /> class.
 /// </summary>
 /// <param name="state">The state with an <see cref="P:GedcomxApplicationState.ETag" /> and <see cref="P:GedcomxApplicationState.LastModified" /> properties
 /// to use for preconditions. See remarks.</param>
 /// <remarks>
 /// If the ETag (entity tag) specified here matches the server's ETag for a resource, the resource will be returned; otherwise, a precondition-failed status
 /// is returned. The same applies to last modified. If the server's last modified date for a resource is equal to the last modified specified here, the
 /// resource will be returned; otherwise, a precondition-failed status is returned.
 /// </remarks>
 public Preconditions(GedcomxApplicationState state)
     : this(state.ETag, state.LastModified)
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Preconditions" /> class.
 /// </summary>
 /// <param name="state">The state with an <see cref="P:GedcomxApplicationState.ETag" /> and <see cref="P:GedcomxApplicationState.LastModified" /> properties
 /// to use for preconditions. See remarks.</param>
 /// <remarks>
 /// If the ETag (entity tag) specified here matches the server's ETag for a resource, the resource will be returned; otherwise, a precondition-failed status
 /// is returned. The same applies to last modified. If the server's last modified date for a resource is equal to the last modified specified here, the
 /// resource will be returned; otherwise, a precondition-failed status is returned.
 /// </remarks>
 public Preconditions(GedcomxApplicationState state)
     : this(state.ETag, state.LastModified)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CacheDirectives" /> class.
 /// </summary>
 /// <param name="state">The state with an <see cref="P:GedcomxApplicationState.ETag" /> and <see cref="P:GedcomxApplicationState.LastModified" /> properties
 /// to use for cache control. See remarks.</param>
 /// <remarks>
 /// If the ETag (entity tag) specified here does not match the server's ETag for a resource, the resource will be returned; otherwise, a not-modified status
 /// is returned. The same applies to last modified. If the server's last modified date for a resource is greater than the last modified specified here, the
 /// resource will be returned; otherwise, a not-modified status is returned.
 /// </remarks>
 public CacheDirectives(GedcomxApplicationState state)
     : this(state.ETag, state.LastModified)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CacheDirectives" /> class.
 /// </summary>
 /// <param name="state">The state with an <see cref="P:GedcomxApplicationState.ETag" /> and <see cref="P:GedcomxApplicationState.LastModified" /> properties
 /// to use for cache control. See remarks.</param>
 /// <remarks>
 /// If the ETag (entity tag) specified here does not match the server's ETag for a resource, the resource will be returned; otherwise, a not-modified status
 /// is returned. The same applies to last modified. If the server's last modified date for a resource is greater than the last modified specified here, the
 /// resource will be returned; otherwise, a not-modified status is returned.
 /// </remarks>
 public CacheDirectives(GedcomxApplicationState state)
     : this(state.ETag, state.LastModified)
 {
 }