5 implementations of StatusCode
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2875public int StatusCode { get; set; }
Microsoft.AspNetCore.Mvc.Core (3)
ProducesAttribute.cs (1)
64public int StatusCode => StatusCodes.Status200OK;
ProducesDefaultResponseTypeAttribute.cs (1)
40public int StatusCode { get; }
ProducesResponseTypeAttribute.cs (1)
73public int StatusCode { get; set; }
Mvc.Api.Analyzers.Test (1)
TestFiles\SymbolApiResponseMetadataProviderTest\GetResponseMetadataTests.cs (1)
61public int StatusCode { get; set; }
26 references to StatusCode
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
ApiResponseTypeProvider.cs (1)
167var statusCode = metadataAttribute.StatusCode;
Microsoft.AspNetCore.Mvc.Core.Test (24)
ApiExplorer\ApiConventionResultTest.cs (24)
42conventionResult.ResponseMetadataProviders.OrderBy(o => o.StatusCode), 43r => Assert.Equal(201, r.StatusCode), 44r => Assert.Equal(403, r.StatusCode)); 82conventionResult.ResponseMetadataProviders.OrderBy(o => o.StatusCode), 83r => Assert.Equal(200, r.StatusCode), 84r => Assert.Equal(202, r.StatusCode), 85r => Assert.Equal(404, r.StatusCode)); 107conventionResult.ResponseMetadataProviders.OrderBy(o => o.StatusCode), 109r => Assert.Equal(200, r.StatusCode), 110r => Assert.Equal(404, r.StatusCode)); 127conventionResult.ResponseMetadataProviders.OrderBy(o => o.StatusCode), 129r => Assert.Equal(201, r.StatusCode), 130r => Assert.Equal(400, r.StatusCode)); 150conventionResult.ResponseMetadataProviders.OrderBy(o => o.StatusCode), 152r => Assert.Equal(204, r.StatusCode), 153r => Assert.Equal(400, r.StatusCode), 154r => Assert.Equal(404, r.StatusCode)); 174conventionResult.ResponseMetadataProviders.OrderBy(o => o.StatusCode), 176r => Assert.Equal(200, r.StatusCode), 177r => Assert.Equal(400, r.StatusCode), 178r => Assert.Equal(404, r.StatusCode)); 198conventionResult.ResponseMetadataProviders.OrderBy(o => o.StatusCode), 200r => Assert.Equal(201, r.StatusCode), 201r => Assert.Equal(400, r.StatusCode));
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
153var statusCode = providerMetadata.StatusCode;