Exemple #1
0
 public void Login(IUserCore loginuser)
 {
     IUserCore user = loginuser;
     HttpContext.Current.Session[SLOGINNAME] = user.LoginName;
     HttpContext.Current.Session[SPASWORD] = user .PassWord ;
     HttpContext.Current.Session[SUSERID] = user.Id;
     HttpContext.Current.Session[SUSERNAME] = user.Name ;
 }
Exemple #2
0
 /// <summary>
 /// Parameter Constructor
 /// </summary>
 /// <param name="userCore">User Core</param>
 /// <param name="profile">Profile</param>
 public Gamification(IUserCore userCore, IProfile profile)
     : base(30, (int)TimeSpan.FromHours(12).TotalSeconds)
 {
     if (null == userCore)
     {
         throw new ArgumentNullException("userCore");
     }
     else if (null == profile)
     {
         throw new ArgumentNullException("profile");
     }
     else
     {
         this.userCore = userCore;
         this.profile  = profile;
     }
 }
Exemple #3
0
 /// <summary>
 /// Fully Loaded.
 /// </summary>
 /// <param name="userCore">User Core</param>
 /// <param name="container">Container</param>
 /// <param name="twitter">Twitter Source</param>
 public TwitterHarvestor(IUserCore userCore, ITextContainer <CodeStormSocial> container, ITwitterSource twitter)
     : base(30, (int)TimeSpan.FromHours(12).TotalSeconds)
 {
     if (null == userCore)
     {
         throw new ArgumentNullException("userCore");
     }
     else if (null == container)
     {
         throw new ArgumentNullException("container");
     }
     else if (null == twitter)
     {
         throw new ArgumentNullException("twitter");
     }
     else
     {
         this.userCore  = userCore;
         this.container = container;
         this.twitter   = twitter;
     }
 }