1 write to Endpoints
Microsoft.AspNetCore.Routing (1)
Matching\PolicyNodeEdge.cs (1)
21Endpoints = endpoints ?? throw new System.ArgumentNullException(nameof(endpoints));
52 references to Endpoints
Microsoft.AspNetCore.Routing (2)
Matching\DfaMatcherBuilder.cs (2)
932if (edge.Endpoints.Count > 0) 934next.AddMatches(edge.Endpoints);
Microsoft.AspNetCore.Routing.Tests (50)
Matching\AcceptsMatcherPolicyTest.cs (14)
182Assert.Equal(new[] { endpoints[1], endpoints[4], }, e.Endpoints.ToArray()); 187Assert.Equal(new[] { endpoints[1], endpoints[4], }, e.Endpoints.ToArray()); 192Assert.Equal(new[] { endpoints[1], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 197Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 202Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 207Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 212Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 240Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 245Assert.Equal(AcceptsMatcherPolicy.Http415EndpointDisplayName, Assert.Single(e.Endpoints).DisplayName); 250Assert.Equal(new[] { endpoints[2], }, e.Endpoints.ToArray()); 255Assert.Equal(new[] { endpoints[0], endpoints[2], }, e.Endpoints.ToArray()); 260Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 265Assert.Equal(new[] { endpoints[0], endpoints[2], }, e.Endpoints.ToArray()); 270Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray());
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (6)
366var endpoint = Assert.Single(e.Endpoints); 372var endpoint = Assert.Single(e.Endpoints); 397Assert.Collection(e.Endpoints, 404Assert.Collection(e.Endpoints, 411var endpoint = Assert.Single(e.Endpoints); 417var endpoint = Assert.Single(e.Endpoints);
Matching\HostMatcherPolicyTest.cs (7)
224Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[7], }, e.Endpoints.ToArray()); 229Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 234Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 239Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 244Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 249Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[5], }, e.Endpoints.ToArray()); 254Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[6], }, e.Endpoints.ToArray());
Matching\HttpMethodMatcherPolicyTest.cs (23)
202Assert.Equal(new[] { endpoints[1], endpoints[4], }, e.Endpoints.ToArray()); 207Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 212Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 217Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 247Assert.Equal(new[] { endpoints[1], endpoints[4], }, e.Endpoints.ToArray()); 252Assert.Equal(new[] { endpoints[4], }, e.Endpoints.ToArray()); 257Assert.Equal(new[] { endpoints[0], endpoints[1], endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 262Assert.Equal(new[] { endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 267Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 272Assert.Equal(new[] { endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 277Assert.Equal(new[] { endpoints[1], endpoints[2], endpoints[3], endpoints[4], }, e.Endpoints.ToArray()); 282Assert.Equal(new[] { endpoints[2], endpoints[4], }, e.Endpoints.ToArray()); 310Assert.Equal(Http405EndpointDisplayName, e.Endpoints.Single().DisplayName); 315Assert.Equal(new[] { endpoints[0], endpoints[1], }, e.Endpoints.ToArray()); 320Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 325Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 354Assert.Equal(Http405EndpointDisplayName, e.Endpoints.Single().DisplayName); 359Assert.Equal(new[] { endpoints[0], endpoints[1], }, e.Endpoints.ToArray()); 364Assert.Equal(new[] { endpoints[1], }, e.Endpoints.ToArray()); 369Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 374Assert.Equal(new[] { endpoints[1], }, e.Endpoints.ToArray()); 379Assert.Equal(new[] { endpoints[1], endpoints[2], }, e.Endpoints.ToArray()); 384Assert.Equal(new[] { endpoints[1], }, e.Endpoints.ToArray());