ICounterApi Interface

Provides methods for generating numbers.

Definition

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
public interface ICounterApi

Example

C#
                    var counterApi = ctx.Use<ICounterApi>();
var orderNo = counterApi.Next("OrderNo");
                  

Methods

Next(String) Generate an auto-incremented integer for a given sequence.
Next(String, Int32) Generate an integer for a given sequence.
Set Set the counter value.

See Also