cs , if ASP.NET Core doesn't do it already: services.AddSingleton<IHostingEnvironment>(env);. where env is the instance passed to the Startup constructor ...
確定! 回上一頁