Interface ISequentialValueStore
Interface for a store that provides sequential values for a given name.
Namespace: DataWeb.Data
Assembly: DataWeb.Core.dll
Syntax
public interface ISequentialValueStore
Properties
Name
The name of the sequential value store.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetNewValueAsync(string, CancellationToken)
Gets a new sequential value for the given name.
Declaration
Task<int> GetNewValueAsync(string name, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the sequential value. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<int> | A task that represents the asynchronous operation. The task result contains the new sequential value. |