Beispiel #1
0
        private SessionsList()
        {
            var guidHndlr = GUIDHandler.Init();

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

            return(s_GUIDHandler);
        }