public Startup(IConfiguration configuration) { Configuration = configuration; // DB接続確立 var dbName = "blog"; DbConnection.Connect(configuration.GetValue <string>("MONGO_CONNECTION"), dbName); // 宣言されたモデルからDBにコレクションを作る MongoInitializer.Run(DbConnection.Db, "tetsujin"); // ユーザパスワードのハッシュキー Session.Hashkey = configuration.GetValue <string>("HASHKEY"); var storageAccount = configuration.GetValue <string>("STORAGE_ACCOUNT"); var storageKey = configuration.GetValue <string>("STORAGE_KEY"); var storageUrl = configuration.GetValue <string>("STORAGE_URL"); BlobFile.SetAccountInfo(storageAccount, storageKey, storageUrl); buildTime = configuration.GetValue <string>("BUILD_TIME"); }