Ejemplo 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);
        }
Ejemplo n.º 2
0
 public UserCommands(IOptionsSnapshot <CachedTelegramDao> cachedTelegramDao)
 {
     CachedTelegramDao = cachedTelegramDao.Value;
 }
Ejemplo n.º 3
0
 public void Disconnect(Guid userId, int tenantId)
 {
     CachedTelegramDao.Delete(userId, tenantId);
 }