From 0646ee927f6a63e2ec815a2aa0e215dc783f6209 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Wed, 19 Apr 2017 23:09:02 -0700 Subject: [PATCH 1/2] Added feature to control http body behavior - Added a flag to allow synchronous IO --- .../IHttpBodyControlFeature.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs diff --git a/src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs b/src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs new file mode 100644 index 00000000..bff6dc06 --- /dev/null +++ b/src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Microsoft.AspNetCore.Http.Features +{ + /// + /// Controls the IO behavior for the and + /// + public interface IHttpBodyControlFeature + { + /// + /// Gets or sets a value that controls whether synchronous IO is allowed for the and + /// + bool AllowSynchronousIO { get; set; } + } +} From a097ced5911b158cc85c2896a493edda2ec1c992 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Thu, 20 Apr 2017 23:56:14 -0700 Subject: [PATCH 2/2] PR feedback --- .../IHttpBodyControlFeature.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs b/src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs index bff6dc06..3f61be97 100644 --- a/src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs +++ b/src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs @@ -1,6 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Text; +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.AspNetCore.Http.Features {