3 instantiations of StaticAssetDescriptor
Microsoft.AspNetCore.StaticAssets.Tests (3)
StaticAssetsIntegrationTests.cs (3)
496manifest.Endpoints.Add(new StaticAssetDescriptor 517manifest.Endpoints.Add(new StaticAssetDescriptor 575manifest.Endpoints.Add(new StaticAssetDescriptor
39 references to StaticAssetDescriptor
Microsoft.AspNetCore.Components.Endpoints (2)
src\Shared\Components\ResourceCollectionResolver.cs (2)
40foreach (var descriptor in descriptors) 96StaticAssetDescriptor descriptor,
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
ComponentWebAssemblyConventions.cs (2)
18IReadOnlyList<StaticAssetDescriptor> descriptors, 43var descriptor = descriptors[i];
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
src\Shared\Components\ResourceCollectionResolver.cs (2)
40foreach (var descriptor in descriptors) 96StaticAssetDescriptor descriptor,
Microsoft.AspNetCore.StaticAssets (31)
Development\StaticAssetDescriptorExtensions.cs (5)
12internal static long GetContentLength(this StaticAssetDescriptor descriptor) 25internal static DateTimeOffset GetLastModified(this StaticAssetDescriptor descriptor) 38internal static EntityTagHeaderValue GetWeakETag(this StaticAssetDescriptor descriptor) 55internal static bool HasContentEncoding(this StaticAssetDescriptor descriptor) 68internal static bool HasETag(this StaticAssetDescriptor descriptor, string tag)
Development\StaticAssetDevelopmentRuntimeHandler.cs (13)
25internal sealed partial class StaticAssetDevelopmentRuntimeHandler(List<StaticAssetDescriptor> descriptors) 32var asset = builder.Metadata.OfType<StaticAssetDescriptor>().Single(); 70private readonly StaticAssetDescriptor _asset; 72public RuntimeStaticAssetResponseBodyFeature(IHttpResponseBodyFeature original, HttpContext context, StaticAssetDescriptor asset) 97var assetDescriptor = endpoint.Metadata.OfType<StaticAssetDescriptor>().Single(); 145private static StaticAssetDescriptor FindOriginalAsset(string tag, List<StaticAssetDescriptor> descriptors) 169List<StaticAssetDescriptor> descriptors) 176foreach (var descriptor in descriptors) 249private static void DisableCachingHeaders(StaticAssetDescriptor descriptor) 278private static void RemoveIntegrityProperty(StaticAssetDescriptor descriptor)
Infrastructure\StaticAssetsEndpointDataSourceHelper.cs (1)
38public static IReadOnlyList<StaticAssetDescriptor> ResolveStaticAssetDescriptors(
StaticAssetEndpointDataSource.cs (4)
19private readonly List<StaticAssetDescriptor> _descriptors; 32List<StaticAssetDescriptor> descriptors) 59internal IReadOnlyList<StaticAssetDescriptor> Descriptors => _descriptors; 105foreach (var asset in _descriptors)
StaticAssetEndpointFactory.cs (1)
19public Endpoint Create(StaticAssetDescriptor resource, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions)
StaticAssetsEndpointConventionBuilder.cs (3)
15private readonly List<StaticAssetDescriptor> _descriptors; 19internal StaticAssetsEndpointConventionBuilder(object lck, bool isBuildManifest, List<StaticAssetDescriptor> descriptors, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions) 28internal List<StaticAssetDescriptor> Descriptors => _descriptors;
StaticAssetsInvoker.cs (2)
20private readonly StaticAssetDescriptor _resource; 32public StaticAssetsInvoker(StaticAssetDescriptor resource, IFileProvider fileProvider, ILogger<StaticAssetsInvoker> logger)
StaticAssetsManifest.cs (2)
38internal static StaticAssetsEndpointDataSource CreateDataSource(IEndpointRouteBuilder endpoints, string manifestName, List<StaticAssetDescriptor> descriptors, bool isBuildManifest) 54public List<StaticAssetDescriptor> Endpoints { get; set; } = [];
Microsoft.AspNetCore.StaticAssets.Tests (2)
StaticAssetsIntegrationTests.cs (2)
211var descriptor = descriptors[0]; 268var descriptor = descriptors[0];