9 implementations of INodeBuilderPolicy
Microsoft.AspNetCore.Routing (4)
Matching\AcceptsMatcherPolicy.cs (1)
11internal sealed class AcceptsMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy, IEndpointSelectorPolicy
Matching\HostMatcherPolicy.cs (1)
14public sealed class HostMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy, IEndpointSelectorPolicy
Matching\HttpMethodMatcherPolicy.cs (1)
16public sealed class HttpMethodMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy, IEndpointSelectorPolicy
Matching\NegotiationMatcherPolicy.cs (1)
10internal abstract class NegotiationMatcherPolicy<TNegotiateMetadata> : MatcherPolicy, IEndpointSelectorPolicy, INodeBuilderPolicy, IEndpointComparerPolicy
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Matching\MatcherBuilderMultipleEntryBenchmark.cs (2)
103private sealed class TestUberPolicy : TestMatcherPolicyBase, INodeBuilderPolicy, IEndpointComparerPolicy 127private sealed class TestNodeBuilderPolicy : TestMatcherPolicyBase, INodeBuilderPolicy
Microsoft.AspNetCore.Routing.Tests (3)
Matching\DfaMatcherBuilderTest.cs (3)
3583private class TestMetadata1MatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy 3625private class TestMetadata2MatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy 3653private class TestNonRoutePatternMatcherPolicy : MatcherPolicy, IEndpointComparerPolicy, INodeBuilderPolicy
64 references to INodeBuilderPolicy
Microsoft.AspNetCore.Routing (15)
Matching\AcceptsMatcherPolicy.cs (1)
22bool INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints)
Matching\DfaMatcherBuilder.cs (6)
24private readonly INodeBuilderPolicy[] _nodeBuilders; 693private static PolicyJumpTable BuildPolicy(int exitDestination, INodeBuilderPolicy nodeBuilder, PolicyJumpTableEdge[] policyEntries) 893var nodeBuilder = _nodeBuilders[i]; 953private static (INodeBuilderPolicy[] nodeBuilderPolicies, IEndpointComparerPolicy[] endpointComparerPolicies, IEndpointSelectorPolicy[] endpointSelectorPolicies) ExtractPolicies(IEnumerable<MatcherPolicy> policies) 955var nodeBuilderPolicies = new List<INodeBuilderPolicy>(); 961if (policy is INodeBuilderPolicy nodeBuilderPolicy)
Matching\DfaNode.cs (1)
34public INodeBuilderPolicy NodeBuilder { get; set; }
Matching\HostMatcherPolicy.cs (1)
26bool INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints)
Matching\HttpMethodMatcherPolicy.cs (1)
39bool INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints)
Matching\MatcherPolicy.cs (3)
18/// and <see cref="INodeBuilderPolicy"/>. 41/// An implementation of <see cref="INodeBuilderPolicy"/> should also implement <see cref="IEndpointSelectorPolicy"/> 43/// <see cref="INodeBuilderPolicy"/> implementations rely on caching of data based on a static set of endpoints. This
Matching\NegotiationMatcherPolicy.cs (2)
23bool INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) => 329PolicyJumpTable INodeBuilderPolicy.BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges)
Microsoft.AspNetCore.Routing.Tests (49)
Matching\AcceptsMatcherPolicyTest.cs (8)
20var policy = (INodeBuilderPolicy)CreatePolicy(); 38var policy = (INodeBuilderPolicy)CreatePolicy(); 57var policy = (INodeBuilderPolicy)CreatePolicy(); 76var policy = (INodeBuilderPolicy)CreatePolicy();
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (23)
426var policy = new ContentEncodingNegotiationMatcherPolicy() as INodeBuilderPolicy; 443var policy = new ContentEncodingNegotiationMatcherPolicy() as INodeBuilderPolicy; 462var policy = new ContentEncodingNegotiationMatcherPolicy() as INodeBuilderPolicy; 480var policy = new ContentEncodingNegotiationMatcherPolicy() as INodeBuilderPolicy; 498var policy = new ContentEncodingNegotiationMatcherPolicy() as INodeBuilderPolicy; 516var policy = new ContentEncodingNegotiationMatcherPolicy() as INodeBuilderPolicy; 534var policy = new ContentEncodingNegotiationMatcherPolicy() as INodeBuilderPolicy; 552var policy = new ContentEncodingNegotiationMatcherPolicy() as INodeBuilderPolicy; 570var policy = new ContentEncodingNegotiationMatcherPolicy() as INodeBuilderPolicy; 588var policy = new ContentEncodingNegotiationMatcherPolicy() as INodeBuilderPolicy; 606var policy = new ContentEncodingNegotiationMatcherPolicy() as INodeBuilderPolicy; 619private static ContentEncodingNegotiationMatcherPolicy.NegotiationPolicyJumpTable CreateJumpTable(INodeBuilderPolicy policy, params Endpoint[] endpoints)
Matching\HostMatcherPolicyTest.cs (10)
17var policy = (INodeBuilderPolicy)CreatePolicy(); 35var policy = (INodeBuilderPolicy)CreatePolicy(); 54var policy = (INodeBuilderPolicy)CreatePolicy(); 73var policy = (INodeBuilderPolicy)CreatePolicy(); 94var policy = (INodeBuilderPolicy)CreatePolicy();
Matching\HttpMethodMatcherPolicyTest.cs (8)
18var policy = (INodeBuilderPolicy)CreatePolicy(); 36var policy = (INodeBuilderPolicy)CreatePolicy(); 55var policy = (INodeBuilderPolicy)CreatePolicy(); 74var policy = (INodeBuilderPolicy)CreatePolicy();