28 references to CoreStrings
IIS.Tests (5)
MaxRequestBodySizeTests.cs (5)
56
Assert.Equal(
CoreStrings
.BadRequest_RequestBodyTooLarge, exception.Message);
99
Assert.Equal(
CoreStrings
.BadRequest_RequestBodyTooLarge, exception.Message);
309
Assert.Equal(
CoreStrings
.BadRequest_RequestBodyTooLarge, exception.Message);
345
Assert.Equal(
CoreStrings
.BadRequest_RequestBodyTooLarge, requestRejectedEx1.Message);
346
Assert.Equal(
CoreStrings
.BadRequest_RequestBodyTooLarge, requestRejectedEx2.Message);
Microsoft.AspNetCore.Server.IIS (23)
artifacts\obj\Microsoft.AspNetCore.Server.IIS\Release\net11.0\Microsoft.AspNetCore.Server.IIS.CoreStrings.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
CoreStrings
)));
Core\EmptyStream.cs (1)
34
throw new InvalidOperationException(
CoreStrings
.SynchronousReadsDisallowed);
Core\HttpRequestStream.cs (1)
28
throw new InvalidOperationException(
CoreStrings
.SynchronousReadsDisallowed);
Core\HttpResponseStream.cs (2)
37
throw new InvalidOperationException(
CoreStrings
.SynchronousWritesDisallowed);
103
throw new ObjectDisposedException(nameof(HttpResponseStream),
CoreStrings
.WritingToResponseBodyAfterResponseCompleted);
Core\IISHttpContext.cs (2)
543
throw new ObjectDisposedException(
CoreStrings
.UnhandledApplicationException, _applicationException);
866
throw new InvalidOperationException(
CoreStrings
.FormatParameterReadOnlyAfterResponseStarted(name));
Core\IISHttpContext.FeatureCollection.cs (8)
343
throw new InvalidOperationException(
CoreStrings
.UpgradeWithWrongProtocolVersion);
345
throw new InvalidOperationException(
CoreStrings
.CannotUpgradeNonUpgradableRequest);
350
throw new InvalidOperationException(
CoreStrings
.UpgradeCannotBeCalledMultipleTimes);
354
throw new InvalidOperationException(
CoreStrings
.UpgradeCannotBeCalledMultipleTimes);
446
throw new InvalidOperationException(
CoreStrings
.MaxRequestBodySizeCannotBeModifiedAfterRead);
450
throw new InvalidOperationException(
CoreStrings
.MaxRequestBodySizeCannotBeModifiedForUpgradedRequests);
454
throw new ArgumentOutOfRangeException(nameof(value),
CoreStrings
.NonNegativeNumberOrNullRequired);
459
_logger.LogWarning(
CoreStrings
.MaxRequestLimitWarning);
Core\IISHttpContext.IHttpRequestLifetimeFeature.cs (1)
51
Abort(new ConnectionAbortedException(
CoreStrings
.ConnectionAbortedByApplication));
Core\IISHttpServer.cs (1)
90
_logger.LogWarning(
CoreStrings
.MaxRequestLimitWarning);
Core\ThrowingWasUpgradedWriteOnlyStreamInternal.cs (3)
16
=> throw new InvalidOperationException(
CoreStrings
.ResponseStreamWasUpgraded);
20
=> throw new InvalidOperationException(
CoreStrings
.ResponseStreamWasUpgraded);
24
=> throw new InvalidOperationException(
CoreStrings
.ResponseStreamWasUpgraded);
IISBadHttpRequestException.cs (2)
24
ex = new BadHttpRequestException(
CoreStrings
.BadRequest_RequestBodyTooLarge, StatusCodes.Status413PayloadTooLarge, reason);
27
ex = new BadHttpRequestException(
CoreStrings
.BadRequest, StatusCodes.Status400BadRequest, reason);
IISServerOptions.cs (1)
74
throw new ArgumentOutOfRangeException(nameof(value),
CoreStrings
.NonNegativeNumberOrNullRequired);