From 2176af7edd14d5797358091725b3e0da637c72a0 Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Tue, 6 Jun 2017 15:27:13 -0700 Subject: [PATCH] Add IHttpMaxRequestBodySizeFeature.IsReadOnly (#858) --- .../IHttpMaxRequestBodySizeFeature.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Microsoft.AspNetCore.Http.Features/IHttpMaxRequestBodySizeFeature.cs b/src/Microsoft.AspNetCore.Http.Features/IHttpMaxRequestBodySizeFeature.cs index 114009b00f..c02000c72a 100644 --- a/src/Microsoft.AspNetCore.Http.Features/IHttpMaxRequestBodySizeFeature.cs +++ b/src/Microsoft.AspNetCore.Http.Features/IHttpMaxRequestBodySizeFeature.cs @@ -8,6 +8,13 @@ namespace Microsoft.AspNetCore.Http.Features /// public interface IHttpMaxRequestBodySizeFeature { + /// + /// Indicates whether is read-only. + /// If true, this could mean that the request body has already been read from + /// or that was called. + /// + bool IsReadOnly { get; } + /// /// The maximum allowed size of the current request body in bytes. /// When set to null, the maximum request body size is unlimited.