Neco.Backend/SessionManager.cs
/// <summary>Routine to periodically remove all expired sessions from the collection</summary>
Routine to periodically remove all expired sessions from the collection
Routine to periodically remove all expired sessions from the collection
public static void SessionRemoverThread(int Seconds) {
            while (true) {
                Thread.Sleep(Seconds * 1000);
                if (Manager.Sessions.Count == 0) { continue; }
                Console.WriteLine($"Removed {Manager.RemoveExpiredSessions()} expired session(s)");
            }
        }
public static void SessionRemoverThread ( int Seconds ) { while ( true ) { Thread . Sleep ( Seconds * 1000 ) ; if ( Manager . Sessions . Count == 0 ) { continue ; } Console . WriteLine ( $" Removed  { Manager . RemoveExpiredSessions ( ) }  expired session(s) " ) ; } }
Routine to periodically remove all expired sessions from the collection
Routine to periodically remove all expired sessions from the collection
Seconds
int