12 implementations of StatusCode
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1412public int StatusCode { get; set; }
Microsoft.AspNetCore.Http (1)
Features\HttpResponseFeature.cs (1)
22public int StatusCode { get; set; }
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.cs (1)
3714public int StatusCode { get; set; } = 200;
ResponseExtensionTests.cs (1)
61public int StatusCode { get; set; }
Microsoft.AspNetCore.Http.Tests (3)
ApplicationBuilderTests.cs (1)
171public int StatusCode
DefaultHttpContextTests.cs (1)
430public int StatusCode { get; set; }
Internal\DefaultHttpResponseTests.cs (1)
194public int StatusCode { get; set; }
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
135int IHttpResponseFeature.StatusCode
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
481int IHttpResponseFeature.StatusCode
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
164int IHttpResponseFeature.StatusCode
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
124int IHttpResponseFeature.StatusCode
Microsoft.AspNetCore.TestHost (1)
ResponseFeature.cs (1)
30public int StatusCode
9 writes to StatusCode
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
394feature.StatusCode = int.Parse(ctx.Request.Query["code"], CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Http (3)
Internal\DefaultHttpResponse.cs (3)
59set { HttpResponseFeature.StatusCode = value; } 145HttpResponseFeature.StatusCode = 301; 149HttpResponseFeature.StatusCode = 302;
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
63{ OwinConstants.ResponseStatusCode, new FeatureMap<IHttpResponseFeature>(feature => feature.StatusCode, () => 200, (feature, value) => feature.StatusCode = Convert.ToInt32(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Http1\Http1ConnectionTests.cs (4)
304Assert.Throws<InvalidOperationException>(() => ((IHttpResponseFeature)_http1Connection).StatusCode = StatusCodes.Status404NotFound); 588((IHttpResponseFeature)_http1Connection).StatusCode = StatusCodes.Status304NotModified; 599((IHttpResponseFeature)_http1Connection).StatusCode = StatusCodes.Status304NotModified; 646((IHttpResponseFeature)_http1Connection).StatusCode = StatusCodes.Status304NotModified;
7 references to StatusCode
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpResponse.cs (1)
58get { return HttpResponseFeature.StatusCode; }
Microsoft.AspNetCore.Http.Features (2)
IHttpResponseFeature.cs (2)
36/// If <see langword="true"/>, the <see cref="StatusCode"/>, 46/// This is the last chance to modify the <see cref="Headers"/>, <see cref="StatusCode"/>, or
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
63{ OwinConstants.ResponseStatusCode, new FeatureMap<IHttpResponseFeature>(feature => feature.StatusCode, () => 200, (feature, value) => feature.StatusCode = Convert.ToInt32(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
241StatusCode = serverResponseFeature.StatusCode,
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (2)
35Assert.Equal(200, features.Get<IHttpResponseFeature>().StatusCode); 86Assert.Equal(200, features.Get<IHttpResponseFeature>().StatusCode);