Interface ISequentialValueService
Represents a service for generating sequential values.
Namespace: DataWeb.Data
Assembly: DataWeb.Core.dll
Syntax
public interface ISequentialValueService
Methods
GetNewValueAsync(string, CancellationToken)
Gets a new value for the specified 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> | The new value. |