修改bug:对象释放后访问对象的错误
This commit is contained in:
@@ -27,7 +27,7 @@ namespace TestWeb
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddHttpContextAccessor();
|
||||
services.AddFileServiceBuilder(opt=>opt.DefaultScheme="")
|
||||
services.AddFileServices(opt=>opt.DefaultScheme="")
|
||||
.AddLocalServices(o => o.StorageRootDir = hostEnvironment.ContentRootPath);
|
||||
services.AddControllersWithViews();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user