コード例 #1
0
        public ActivityController(Strava.Client client, Models.ButteryContext context)
        {
            _client = client;

            _buttery = new Buttery.Buttery(context);
            _account = _buttery.GetAccount();
        }
コード例 #2
0
 public HomeController(ButteryContext context, Strava.Settings settings, Strava.Client client, IConfiguration config)
 {
     _settings    = settings;
     _buttery     = new Buttery.Buttery(context);
     _account     = _buttery.GetAccount();
     _client      = client;
     _redirectUri = config["StravaOauthRedirectUri"];
 }