private MemberContext(long userId) { this.member = null; this.member = this.GetAdminMemberFromContext("MemberContext:" + userId); if (this.member == null) { this.member = AdminMemberFactory.GetInstance(TheKnot.Membership.Security.SiteContext.Current).Find(userId); this.SaveToContext(this.member, "MemberContext:" + userId); } }
private MemberContext() { this.member = null; if (TheKnot.Membership.Security.Authentication.IsAuthenticated(false)) { long userID = TheKnot.Membership.Security.Authentication.GetUserID(); this.member = this.GetAdminMemberFromContext("MemberContext:" + userID); if (this.member == null) { this.member = AdminMemberFactory.GetInstance(TheKnot.Membership.Security.SiteContext.Current).Find(userID); this.SaveToContext(this.member, "MemberContext:" + userID); } } }