コード例 #1
0
        public static OnlineGuestsInfo GetInstance()
        {
            if (guestsInfo == null)
            {
                guestsInfo = new OnlineGuestsInfo();
            }

            return guestsInfo;
        }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     string guestId = this.Context.Items["GuestId"].ToString();
     GuestsInfo = Application["OnlineGuestsInfo"] as OnlineGuestsInfo;
     Guest = GuestsInfo.GetGuestByGuestId(guestId);
 }