334 references to GetMetadata
CookieSample (1)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.Authorization.Policy (1)
Microsoft.AspNetCore.Components.Endpoints (8)
Microsoft.AspNetCore.Components.Endpoints.Tests (21)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.Cors.Test (3)
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (13)
JsonTranscodingServiceMethodProviderTests.cs (13)
30Assert.Equal("GET", endpoint.Metadata.GetMetadata<IHttpMethodMetadata>()?.HttpMethods.Single());
46Assert.Equal("HEAD", endpoint.Metadata.GetMetadata<IHttpMethodMetadata>()?.HttpMethods.Single());
61Assert.Equal("GET", getMethodModel.Metadata.GetMetadata<IHttpMethodMetadata>()?.HttpMethods.Single());
62Assert.Equal("/v1/additional_bindings/{name}", getMethodModel.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.HttpRule.Get);
66Assert.Equal("DELETE", additionalMethodModel.Metadata.GetMetadata<IHttpMethodMetadata>()?.HttpMethods.Single());
67Assert.Equal("/v1/additional_bindings/{name}", additionalMethodModel.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.HttpRule.Delete);
81Assert.Equal("POST", startFrameImport.Metadata.GetMetadata<IHttpMethodMetadata>()?.HttpMethods.Single());
82Assert.Equal("/v1/frames:startFrameImport", startFrameImport.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.HttpRule.Post);
85Assert.Equal("POST", getFrameImport.Metadata.GetMetadata<IHttpMethodMetadata>()?.HttpMethods.Single());
86Assert.Equal("/v1/frames:getFrameImport", getFrameImport.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.HttpRule.Post);
157Assert.Equal("GET", endpoint.Metadata.GetMetadata<IHttpMethodMetadata>()?.HttpMethods.Single());
158Assert.Equal("/v1/server_greeter/{name}", endpoint.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.HttpRule.Get);
237.Where(e => e.Metadata.GetMetadata<GrpcMethodMetadata>()?.Method.Name == methodName)
Microsoft.AspNetCore.Grpc.Swagger (3)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Http (3)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Http.Connections.Tests (8)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.HttpLogging.Tests (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (6)
Microsoft.AspNetCore.Mvc.Core (17)
Microsoft.AspNetCore.Mvc.Core.Test (53)
Routing\ControllerActionEndpointDataSourceTest.cs (49)
95Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
100Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
108Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
109Assert.Equal("1", e.Metadata.GetMetadata<IRouteNameMetadata>().RouteName);
110Assert.Equal("1", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName);
115Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
116Assert.Equal("2", e.Metadata.GetMetadata<IRouteNameMetadata>().RouteName);
117Assert.Equal("2", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName);
122Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
123Assert.Equal("Test", e.Metadata.GetMetadata<IRouteNameMetadata>().RouteName);
124Assert.Equal("Test", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName);
177Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
178Assert.Equal("Hi there", e.Metadata.GetMetadata<string>());
183Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
184Assert.Equal("Hi there", e.Metadata.GetMetadata<string>());
192Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
193Assert.Equal("Hi there", e.Metadata.GetMetadata<string>());
198Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
199Assert.Equal("Hi there", e.Metadata.GetMetadata<string>());
204Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
205Assert.Equal("Hi there", e.Metadata.GetMetadata<string>());
264Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
269Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
277Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
278Assert.Equal("1", e.Metadata.GetMetadata<IRouteNameMetadata>().RouteName);
279Assert.Equal("1", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName);
284Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
285Assert.Equal("2", e.Metadata.GetMetadata<IRouteNameMetadata>().RouteName);
286Assert.Equal("2", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName);
291Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
292Assert.Equal("Test", e.Metadata.GetMetadata<IRouteNameMetadata>().RouteName);
293Assert.Equal("NewName", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName);
346Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
352Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
361Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
367Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
373Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
374Assert.Equal("Hi there", e.Metadata.GetMetadata<string>());
440Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
442Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>());
447Assert.Same(actions[1], e.Metadata.GetMetadata<ActionDescriptor>());
449Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>());
457Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
460Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>());
465Assert.Null(e.Metadata.GetMetadata<ActionDescriptor>());
467Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>());
472Assert.Same(actions[0], e.Metadata.GetMetadata<ActionDescriptor>());
475Assert.NotNull(e.Metadata.GetMetadata<GroupMetadata>());
548return !(endpoint.Metadata.GetMetadata<ISuppressLinkGenerationMetadata>()?.SuppressLinkGeneration == true);
Microsoft.AspNetCore.Mvc.Razor (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
Microsoft.AspNetCore.Mvc.RazorPages (6)
Microsoft.AspNetCore.Mvc.RazorPages.Test (16)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (24)
Microsoft.AspNetCore.OpenApi (7)
Microsoft.AspNetCore.OpenApi.Tests (7)
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.RateLimiting (3)
Microsoft.AspNetCore.RateLimiting.Tests (3)
Microsoft.AspNetCore.RequestDecompression (1)
Microsoft.AspNetCore.Routing (34)
Microsoft.AspNetCore.Routing.Microbenchmarks (5)
Microsoft.AspNetCore.Routing.Tests (57)
Microsoft.AspNetCore.SignalR.Tests (8)
Microsoft.AspNetCore.StaticAssets (1)
MinimalSample (1)
RoutingWebSite (1)
SignalR.Client.FunctionalTestApp (1)
StaticFilesAuth (1)