17 using System.Collections.Generic;
19 using erminas.SmartAPI.CMS;
21 namespace erminas.SmartAPI.Utils
31 LoginGuid = loginGuid;
32 SessionKey = sessionKey;
33 ProjectGuid = projectGuid;
43 infos => infos.OrderBy(info => info.LoginDate).First();
44 return CreateOrReplaceSession(login, sessionReplacementSelector);
49 sessionReplacementSelector)
51 return new Session(login, sessionReplacementSelector);
60 return new Session(Login, LoginGuid, SessionKey, ProjectGuid);
65 return new Session(login, null);
69 public Guid LoginGuid {
get;
set; }
70 public Guid ProjectGuid {
get;
set; }
71 public string SessionKey {
get;
set; }