/// <summary>
        /// 取得Next value
        /// </summary>
        /// <param name="keyName"></param>
        /// <returns></returns>
        public Domain.Models.Sequence GetNextVal(string key, IAllocatorGetValProvider getValProvider)
        {
            var seq = new Domain.Models.Sequence()
            {
                Key   = key,
                Value = getValProvider.GetNextVal(key)
            };

            return(seq);
        }
Exemple #2
0
 public AllocatorController(IHostingEnvironment env, IAllocatorGetValProvider getVal)
 {
     this._env           = env;
     this.getValProvider = getVal;
 }