1 instantiation of EmptyHttpResult
Microsoft.AspNetCore.Http.Abstractions (1)
HttpResults\EmptyHttpResult.cs (1)
19public static EmptyHttpResult Instance { get; } = new();
27 references to EmptyHttpResult
Microsoft.AspNetCore.Http.Abstractions (2)
HttpResults\EmptyHttpResult.cs (2)
17/// Gets an instance of <see cref="EmptyHttpResult"/>. 19public static EmptyHttpResult Instance { get; } = new();
Microsoft.AspNetCore.Http.Extensions (7)
RequestDelegateFactory.cs (7)
105private static readonly NewExpression EmptyHttpResultValueTaskExpr = Expression.New(typeof(ValueTask<object>).GetConstructor(new[] { typeof(EmptyHttpResult) })!, Expression.Property(null, typeof(EmptyHttpResult), nameof(EmptyHttpResult.Instance))); 2503return EmptyHttpResult.Instance; 2508return new ValueTask<object?>(EmptyHttpResult.Instance); 2519return EmptyHttpResult.Instance; 2525return new ValueTask<object?>(EmptyHttpResult.Instance);
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.cs (2)
113Assert.IsType<EmptyHttpResult>(response); 3099Assert.IsType<EmptyHttpResult>(response);
Microsoft.AspNetCore.Http.Results (3)
Properties\AssemblyInfo.cs (1)
6[assembly: TypeForwardedTo(typeof(Microsoft.AspNetCore.Http.HttpResults.EmptyHttpResult))]
TypedResults.cs (2)
1074public static EmptyHttpResult Empty { get; } = EmptyHttpResult.Instance;
Microsoft.AspNetCore.Http.Results.Tests (10)
EmptyResultTests.cs (4)
14var emptyResult = EmptyHttpResult.Instance; 30var result = EmptyHttpResult.Instance;
ResultsTests.cs (4)
923var result = Results.Empty as EmptyHttpResult; 926Assert.Equal(EmptyHttpResult.Instance, result); 1751(() => Results.Empty, typeof(EmptyHttpResult)),
TypedResultsTests.cs (2)
818var result = TypedResults.Empty; 821Assert.Equal(EmptyHttpResult.Instance, result);
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
90routeGroup.MapPost("/login", async Task<Results<Ok<AccessTokenResponse>, EmptyHttpResult, ProblemHttpResult>>
Microsoft.AspNetCore.Routing (1)
RequestDelegateFilterPipelineBuilder.cs (1)
38return EmptyHttpResult.Instance;
Microsoft.AspNetCore.Routing.Tests (1)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
256Assert.IsType<EmptyHttpResult>(response);