Esempio n. 1
0
 public Github(Services.ICacheProvider CacheProvider, Models.GithubUser user)
 {
     _User       = user;
     _GithubURLs = new GithubURLs {
         User = user
     };
 }
        public void Authenticate(Models.GithubUser User)
        {
            if (User == null)
            {
                LogProvider.LogMessage("Authenticate => Null user");
            }
            else
            {
                LogProvider.LogMessage("Authenticate => Name : {0}, APIToken : {1}", User.Name, User.APIToken);
            }

            CurrentUser = User;
        }
Esempio n. 3
0
 internal string GithubAuthenticationQueryString(Models.GithubUser User)
 {
     return(User != null?string.Format("?login={0}&token={1}", User.Name, User.APIToken) : string.Empty);
 }