Neco.Backend/SessionManager.cs
/// <summary>Logs specified user in to a new session.</summary>
/// <param name="S"></param>
/// <returns>GUID of the added session</returns>
Logs specified user in to a new session.
Logs specified user in to a new session .
public Guid LogIn(string UserID) {
            Session S;
            do {
                S = new(UserID);
            } while (Sessions.Contains(S));
            Sessions.Add(S);
            return S.ID;
        }
public Guid LogIn ( string UserID ) { Session S ; do { S = new ( UserID ) ; } while ( Sessions . Contains ( S ) ) ; Sessions . Add ( S ) ; return S . ID ; }
Logs specified user in to a new session.
Logs specified user in to a new session .
//Add the session //Return the Session
GUID of the added session
GUID of the added session
UserID
string
S
None