Skip to content

How to get the Etag for an Item? #187

Answered by mumby0168
WestDiscGolf asked this question in Q&A
Discussion options

You must be logged in to vote

We aim to have dedicated documentation for this soon.

There is a bit of explanation in the README see below.

Optimistic Concurrency Control with Etags

The default repository now supports etags and will pass them when IItemWithEtag is implemented correctly or the base classes EtagItem or FullItem are used. The etag check is enforced on all updates when TItem is of the correct type. It can however be bypassed by setting the ignoreEtag optional parameter in the relevant async methods. The InMemory repository also supports OCC with Etags. The OptimisticCurrencyControl sample shows these features.

Getting the new etag

When creating a new object, if storing in memory, it is important to store t…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mumby0168
Comment options

You must be logged in to vote
4 replies
@WestDiscGolf
Comment options

@mumby0168
Comment options

@WestDiscGolf
Comment options

@mumby0168
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #183 on January 18, 2022 19:50.