Skip to content

AdoNetClusteringTable.UpdateRow(MembershipEntry, string, TableVersion)

UpdateRow(MembershipEntry, string, TableVersion)

View source
[System.Obsolete(Use UpdateRowAsync instead.)]
public Task<bool> UpdateRow(MembershipEntry entry, string etag, TableVersion tableVersion)
Atomically tries to update the MembershipEntry for one silo and also update the TableVersion. If operation succeeds, the following changes would be made to the table: 1) The MembershipEntry for this silo will be updated using the supplied entry. 2) The row eTag for the updated MembershipEntry will reflect the provider's metadata or concurrency-token policy. 3) TableVersion.Version in the table will be updated to the new TableVersion.Version. 4) TableVersion etag in the table will be updated to the new unique automatically generated eTag. All those changes to the table, update of a new row and update of the table version and the associated etags, should happen atomically, or fail atomically with no side effects. The operation should fail in each of the following conditions: 1) A MembershipEntry for a given silo does not exist in the table 2) Update of the TableVersion failed since the given TableVersion etag (as specified by the TableVersion.VersionEtag property) did not match the TableVersion etag in the table. 3) The provider validates a separate canonical row concurrency token and the supplied etag does not match it.

Parameters

entryMembershipEntry
MembershipEntry to be updated.
etagstring
The provider-defined row entity tag obtained from a membership read.
tableVersionTableVersion
The new TableVersion for this table, along with its etag.

Returns

True if the update operation succeeded and false otherwise.