Check out example codes for "c# AllowSynchronousIO to true". It will help you in understanding the concepts better.

Code Example 1

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;
    });
}

Learn ReactJs, React Native from akashmittal.com