diff --git a/samples/SampleApp/Startup.cs b/samples/SampleApp/Startup.cs index 5f81cbefcc..edc92abac0 100644 --- a/samples/SampleApp/Startup.cs +++ b/samples/SampleApp/Startup.cs @@ -11,7 +11,7 @@ namespace SampleApp { public void Configure(IApplicationBuilder app) { - app.Run(async context => + app.Run(context => { Console.WriteLine("{0} {1}{2}{3}", context.Request.Method, @@ -21,8 +21,8 @@ namespace SampleApp context.Response.ContentLength = 11; context.Response.ContentType = "text/plain"; - await context.Response.WriteAsync("Hello world"); + return context.Response.WriteAsync("Hello world"); }); } } -} \ No newline at end of file +}