📅  最后修改于: 2022-03-11 14:48:49.079000             🧑  作者: Mango
public void ConfigureServices(IServiceCollection services)
{
// If using Kestrel:
services.Configure(options =>
{
options.AllowSynchronousIO = true;
});
// If using IIS:
services.Configure(options =>
{
options.AllowSynchronousIO = true;
});
}