11 references to Instance
Microsoft.AspNetCore.Http.Extensions (5)
RequestDelegateFactory.cs (5)
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.Results (1)
TypedResults.cs (1)
1074public static EmptyHttpResult Empty { get; } = EmptyHttpResult.Instance;
Microsoft.AspNetCore.Http.Results.Tests (4)
EmptyResultTests.cs (2)
14var emptyResult = EmptyHttpResult.Instance; 30var result = EmptyHttpResult.Instance;
ResultsTests.cs (1)
926Assert.Equal(EmptyHttpResult.Instance, result);
TypedResultsTests.cs (1)
821Assert.Equal(EmptyHttpResult.Instance, result);
Microsoft.AspNetCore.Routing (1)
RequestDelegateFilterPipelineBuilder.cs (1)
38return EmptyHttpResult.Instance;