15 references to MetadataSource
Microsoft.AspNetCore.Mvc.Core.Test (15)
ApplicationModels\EndpointMetadataProviderTest.cs (15)
38Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source: MetadataSource.ReturnType });
49endpoint => Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source: MetadataSource.ReturnType }),
50endpoint => Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source: MetadataSource.ReturnType }));
82Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source: MetadataSource.Parameter });
93endpoint => Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source: MetadataSource.Parameter }),
94endpoint => Assert.Contains(endpoint.Metadata, m => m is CustomEndpointMetadata { Source: MetadataSource.Parameter }));
107builder => builder.Metadata.Add(new CustomEndpointMetadata() { Source = MetadataSource.Caller }),
111builder => builder.Metadata.Add(new CustomEndpointMetadata() { Source = MetadataSource.Finally }),
121m => Assert.True(m is CustomEndpointMetadata { Source: MetadataSource.Caller }),
123m => Assert.True(m is CustomEndpointMetadata { Source: MetadataSource.Parameter }),
128m => Assert.True(m is CustomEndpointMetadata { Source: MetadataSource.Finally }),
367public MetadataSource Source { get; init; }
401builder.Metadata.Add(new CustomEndpointMetadata { Source = MetadataSource.Parameter });
409builder.Metadata.Add(new CustomEndpointMetadata { Source = MetadataSource.ReturnType });
419builder.Metadata.Add(new CustomEndpointMetadata { Source = MetadataSource.ReturnType });