Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Scenarios/Getting-Started-with-CoreWCF/WebHttp/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using CoreWCF;
using CoreWCF.Configuration;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using Microsoft.Extensions.DependencyInjection;
using Swashbuckle.AspNetCore.Swagger;
using System.Xml;
Expand All @@ -24,6 +25,10 @@ public void ConfigureServices(IServiceCollection services)
});

services.AddSingleton(new SwaggerOptions());
services.Configure<KestrelServerOptions>(options =>
{
options.AllowSynchronousIO = true;
});
}

public void Configure(IApplicationBuilder app)
Expand Down Expand Up @@ -70,4 +75,4 @@ public void Configure(IApplicationBuilder app)
});
});
}
}
}