private SessionsList() { var guidHndlr = GUIDHandler.Init(); foreach (var item in guidHndlr.Guid2SessionData) { Add(new Session() { TokenId = item.Key.ToString(), GestationalAge = item.Value.GestationalAge }); } }
public static GUIDHandler Init() { if (s_GUIDHandler == null) { lock (s_lockObject) { if (s_GUIDHandler == null) { s_GUIDHandler = new GUIDHandler(); } } } return(s_GUIDHandler); }