Table of Contents

Class EntityTagExtensions

Namespace
XENBIT.ResQueServe.Core.Extensions
Assembly
RQS.Core.dll

Entity tags for optimistic concurrency of editable models: a strong tag of the JSON representation the API returns. Properties marked with EntityTagIgnoreAttribute are left out, those marked with EntityTagReferenceAttribute count only by their id. No version column is needed, and a tag changes exactly when an editable value changes.

public static class EntityTagExtensions
Inheritance
EntityTagExtensions
Inherited Members

Methods

GetEntityTag(object)

The quoted strong entity tag of the model, e.g. "3q2-7w".

public static string GetEntityTag(this object model)

Parameters

model object

Returns

string

MatchesEntityTag(string, string)

Whether an If-Match header value matches the entity tag: *, or one of its comma separated tags. If-Match uses the strong comparison (RFC 9110, section 13.1.1), so a weak tag (W/"…") never matches.

public static bool MatchesEntityTag(this string ifMatch, string entityTag)

Parameters

ifMatch string
entityTag string

Returns

bool