Esempio n. 1
0
        public RegStatus UserIsConnected(Guid userId, int tenantId)
        {
            if (CachedTelegramDao.GetUser(userId, tenantId) != null)
            {
                return(RegStatus.Registered);
            }

            return(IsAwaitingRegistration(userId, tenantId) ? RegStatus.AwaitingConfirmation : RegStatus.NotRegistered);
        }
Esempio n. 2
0
 public UserCommands(IOptionsSnapshot <CachedTelegramDao> cachedTelegramDao)
 {
     CachedTelegramDao = cachedTelegramDao.Value;
 }
Esempio n. 3
0
 public void Disconnect(Guid userId, int tenantId)
 {
     CachedTelegramDao.Delete(userId, tenantId);
 }