Beispiel #1
0
        public static SocialProfile CreateSocialProfileIfNeeded()
        {
            SocialProfile result;

            if (ShouldUseSocialProfileFromSession)
            {
                result = GetSocialProfileFormSession();
            }
            else
            {
                result = new SocialProfile(BindAuthenticationModel(), BindUserModel());
            }

            return(result);
        }
Beispiel #2
0
 public static void SetSocialProfileToSession(SocialProfile profile)
 {
     HttpContext.Current.Session.Add("SocialProfile", profile);
 }