public void ConfigureServices(IServiceCollection services)
{
// If using Kestrel:
services.Configure<KestrelServerOptions>(options =>
{
options.AllowSynchronousIO = true;
});
// If using IIS:
services.Configure<IISServerOptions>(options =>
{
options.AllowSynchronousIO = true;
});
}
Net Core Api在获取Body的时候出现 Synchronous operations are disallowed. Call WriteAsync or set AllowSynchron
最新推荐文章于 2024-05-30 22:18:43 发布