Esempio n. 1
0
        public Startup(IHostingEnvironment env)
        {
            var builder = new ConfigurationBuilder()
                          .SetBasePath(env.ContentRootPath);

            builder.AddEnvironmentVariables();

            Configuration = builder.Build();
            MongoManager.SetupMongoClient(Configuration["MongoConnection"]);
            SpotifyManager.SetVariables(Configuration["SpotifyClientId"], Configuration["SpotifyClientSecret"]);
        }