📜  c# AllowSynchronousIO 为 true - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:49.079000             🧑  作者: Mango

代码示例1
public void ConfigureServices(IServiceCollection services)
{
    // If using Kestrel:
    services.Configure(options =>
    {
        options.AllowSynchronousIO = true;
    });

    // If using IIS:
    services.Configure(options =>
    {
        options.AllowSynchronousIO = true;
    });
}