Beispiel #1
0
        /// <summary>
        /// Reset input process.
        /// </summary>
        /// <param name="screen"></param>
        public async Task ResetInputAsync(UssdScreen screen)
        {
            await Redis.HashSetAsync(InputMetaHash, "Screen"
                                     , Screen);

            await Redis.HashSetAsync(InputMetaHash, "Length"
                                     , screen.Inputs.Count);

            await Redis.HashSetAsync(InputMetaHash, "Position"
                                     , 0);

            await ResetInputExpiryAsync();
        }
Beispiel #2
0
 /// <summary>
 /// Reset input process.
 /// </summary>
 /// <param name="screen"></param>
 public async Task ResetInputAsync(UssdScreen screen)
 {
     await Redis.HashSetAsync(InputMetaHash, "Screen"
                             , Screen);
     await Redis.HashSetAsync(InputMetaHash, "Length"
         , screen.Inputs.Count);
     await Redis.HashSetAsync(InputMetaHash, "Position"
         , 0);
     await ResetInputExpiryAsync();
 }