Class SequentialValueStore
Inheritance
SequentialValueStore
Assembly: DataWeb.Data.AzureCosmosDB.dll
Syntax
public class SequentialValueStore : ISequentialValueStore
Constructors
SequentialValueStore(ICosmosHelper, IConfigurationService)
Declaration
public SequentialValueStore(ICosmosHelper cosmosHelper, IConfigurationService configurationService)
Parameters
Properties
Name
Provider name identifier.
Declaration
public string Name { get; }
Property Value
Methods
GetNewValueAsync(string, CancellationToken)
Atomically increments the counter for name and returns the new value.
Declaration
public Task<int> GetNewValueAsync(string name, CancellationToken cancellationToken = default)
Parameters
Returns
Exceptions
SeedValueAsync(string, CancellationToken)
Creates or resets the counter document for name with value 0.
Declaration
public Task SeedValueAsync(string name, CancellationToken cancellationToken = default)
Parameters
Returns
Exceptions
Implements