11 references to Instance
Microsoft.AspNetCore.Http.Extensions (5)
RequestDelegateFactory.cs (5)
105
private static readonly NewExpression EmptyHttpResultValueTaskExpr = Expression.New(typeof(ValueTask<object>).GetConstructor(new[] { typeof(EmptyHttpResult) })!, Expression.Property(null, typeof(EmptyHttpResult), nameof(EmptyHttpResult.
Instance
)));
2503
return EmptyHttpResult.
Instance
;
2508
return new ValueTask<object?>(EmptyHttpResult.
Instance
);
2519
return EmptyHttpResult.
Instance
;
2525
return new ValueTask<object?>(EmptyHttpResult.
Instance
);
Microsoft.AspNetCore.Http.Results (1)
TypedResults.cs (1)
1074
public static EmptyHttpResult Empty { get; } = EmptyHttpResult.
Instance
;
Microsoft.AspNetCore.Http.Results.Tests (4)
EmptyResultTests.cs (2)
14
var emptyResult = EmptyHttpResult.
Instance
;
30
var result = EmptyHttpResult.
Instance
;
ResultsTests.cs (1)
926
Assert.Equal(EmptyHttpResult.
Instance
, result);
TypedResultsTests.cs (1)
821
Assert.Equal(EmptyHttpResult.
Instance
, result);
Microsoft.AspNetCore.Routing (1)
RequestDelegateFilterPipelineBuilder.cs (1)
38
return EmptyHttpResult.
Instance
;