Class SequentialValueService
Service for generating new sequential values.
Inheritance
object
SequentialValueService
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DataWeb.Data
Assembly: DataWeb.Core.dll
Syntax
public class SequentialValueService : ISequentialValueService
Constructors
SequentialValueService(ISequentialValueStore)
Constructor for SequentialValueService.
Declaration
public SequentialValueService(ISequentialValueStore sequentialValueStore)
Parameters
Type | Name | Description |
---|---|---|
ISequentialValueStore | sequentialValueStore | The store used for generating new sequential values. |
Methods
GetNewValueAsync(string)
Gets a new sequential value for the given name.
Declaration
public Task<int> GetNewValueAsync(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the sequential value to get. |
Returns
Type | Description |
---|---|
Task<int> | The new sequential value. |
Exceptions
Type | Condition |
---|---|
System.Exception | Thrown when the name parameter is null or empty. |