4 instantiations of ResourceAssetCollection
Microsoft.AspNetCore.Components.Endpoints (2)
src\Components\Shared\src\ResourceCollectionProvider.cs (1)
68return result == null ? ResourceAssetCollection.Empty : new ResourceAssetCollection(result);
src\Shared\Components\ResourceCollectionResolver.cs (1)
78var result = new ResourceAssetCollection(resources);
Microsoft.AspNetCore.Components.WebAssembly (1)
src\Components\Shared\src\ResourceCollectionProvider.cs (1)
68return result == null ? ResourceAssetCollection.Empty : new ResourceAssetCollection(result);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
src\Shared\Components\ResourceCollectionResolver.cs (1)
78var result = new ResourceAssetCollection(resources);
129 references to ResourceAssetCollection
Microsoft.AspNetCore.Components (10)
ComponentBase.cs (2)
51/// Gets the <see cref="ResourceAssetCollection"/> for the application. 53protected ResourceAssetCollection Assets => _renderHandle.Assets;
RenderHandle.cs (2)
77/// Gets the <see cref="ResourceAssetCollection"/> associated with the <see cref="Renderer"/>. 79public ResourceAssetCollection Assets
RenderTree\Renderer.cs (3)
162/// Gets the <see cref="ResourceAssetCollection"/> associated with this <see cref="Renderer"/>. 164protected internal virtual ResourceAssetCollection Assets { get; } = ResourceAssetCollection.Empty;
ResourceAssetCollection.cs (3)
15/// An empty <see cref="ResourceAssetCollection"/>. 17public static readonly ResourceAssetCollection Empty = new([]); 24/// Initializes a new instance of <see cref="ResourceAssetCollection"/>
Microsoft.AspNetCore.Components.Endpoints (24)
Assets\ImportMapDefinition.cs (2)
52/// Creates an import map from a <see cref="ResourceAssetCollection"/>. 56public static ImportMapDefinition FromResourceCollection(ResourceAssetCollection assets)
Builder\RazorComponentEndpointDataSource.cs (2)
132var resourceCollection = endpoints.Count > 0 ? endpoints[^1].Metadata.GetMetadata<ResourceAssetCollection>() : null;
Builder\RazorComponentsEndpointConventionBuilderExtensions.cs (1)
39/// Sets a <see cref="ResourceAssetCollection"/> and <see cref="ImportMapDefinition"/> metadata
Builder\ResourceCollectionConvention.cs (1)
14private ResourceAssetCollection? _collection;
Builder\ResourceCollectionUrlEndpoint.cs (4)
24ResourceAssetCollection resourceCollection) 91private static byte[] CreateContent(ResourceAssetCollection resourceCollection) 110private static string ComputeFingerprintSuffix(ResourceAssetCollection resourceCollection) 153[JsonSerializable(typeof(ResourceAssetCollection))]
Rendering\EndpointHtmlRenderer.cs (6)
44private ResourceAssetCollection? _resourceCollection; 134var resourceCollection = GetResourceCollection(httpContext); 143resourceCollectionProvider.SetResourceCollection(resourceCollection ?? ResourceAssetCollection.Empty); 151protected override ResourceAssetCollection Assets => 154private static ResourceAssetCollection? GetResourceCollection(HttpContext httpContext) => httpContext.GetEndpoint()?.Metadata.GetMetadata<ResourceAssetCollection>();
src\Components\Shared\src\ResourceCollectionProvider.cs (6)
16private ResourceAssetCollection? _resourceCollection; 46internal async Task<ResourceAssetCollection> GetResourceCollection() 52internal void SetResourceCollection(ResourceAssetCollection resourceCollection) 59private async Task<ResourceAssetCollection> LoadResourceCollection() 63return ResourceAssetCollection.Empty; 68return result == null ? ResourceAssetCollection.Empty : new ResourceAssetCollection(result);
src\Shared\Components\ResourceCollectionResolver.cs (2)
21public ResourceAssetCollection ResolveResourceCollection(string? manifestName = null) 78var result = new ResourceAssetCollection(resources);
Microsoft.AspNetCore.Components.Endpoints.Tests (18)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (18)
36var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 55var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 74var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 95var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 117var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 139var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 162var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 188var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 214var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>();
Microsoft.AspNetCore.Components.Server (7)
Circuits\CircuitFactory.cs (1)
44ResourceAssetCollection resourceCollection)
Circuits\ICircuitFactory.cs (1)
17ResourceAssetCollection resourceCollection);
Circuits\RemoteRenderer.cs (3)
27private readonly ResourceAssetCollection _resourceCollection; 49ResourceAssetCollection resourceCollection = null) 63protected override ResourceAssetCollection Assets => _resourceCollection ?? base.Assets;
ComponentHub.cs (2)
126var resourceCollection = Context.GetHttpContext().GetEndpoint()?.Metadata.GetMetadata<ResourceAssetCollection>();
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\ComponentHubTest.cs (1)
206ResourceAssetCollection resourceCollection)
Microsoft.AspNetCore.Components.WebAssembly (10)
Hosting\WebAssemblyHost.cs (1)
154var collection = await collectionProvider.GetResourceCollection();
Rendering\WebAssemblyRenderer.cs (3)
26private readonly ResourceAssetCollection _resourceCollection; 30public WebAssemblyRenderer(IServiceProvider serviceProvider, ResourceAssetCollection resourceCollection, ILoggerFactory loggerFactory, JSComponentInterop jsComponentInterop) 86protected override ResourceAssetCollection Assets => _resourceCollection;
src\Components\Shared\src\ResourceCollectionProvider.cs (6)
16private ResourceAssetCollection? _resourceCollection; 46internal async Task<ResourceAssetCollection> GetResourceCollection() 52internal void SetResourceCollection(ResourceAssetCollection resourceCollection) 59private async Task<ResourceAssetCollection> LoadResourceCollection() 63return ResourceAssetCollection.Empty; 68return result == null ? ResourceAssetCollection.Empty : new ResourceAssetCollection(result);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyEndpointProvider.cs (1)
25if (applicationBuilder.Properties[ResourceCollectionKey] is ResourceAssetCollection assetMap)
Microsoft.AspNetCore.Mvc.Razor (3)
TagHelpers\UrlResolutionTagHelper.cs (3)
310var assetCollection = GetAssetCollection(); 338private ResourceAssetCollection? GetAssetCollection() 340return ViewContext.HttpContext.GetEndpoint()?.Metadata.GetMetadata<ResourceAssetCollection>();
Microsoft.AspNetCore.Mvc.RazorPages (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
19/// Adds a <see cref="ResourceAssetCollection"/> metadata instance to the endpoints.
Microsoft.AspNetCore.Mvc.RazorPages.Test (16)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (16)
33var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 54var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 75var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 97var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 120var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 143var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 169var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 195var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>();
Microsoft.AspNetCore.Mvc.TagHelpers (2)
ResourceCollectionUtilities.cs (2)
15var assetCollection = viewContext.HttpContext.GetEndpoint()?.Metadata.GetMetadata<ResourceAssetCollection>();
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
21/// Adds a <see cref="ResourceAssetCollection"/> metadata instance to the endpoints.
src\Shared\Components\ResourceCollectionResolver.cs (3)
14private ResourceAssetCollection _resourceCollection; 25public ResourceAssetCollection ResolveResourceCollection() 78var result = new ResourceAssetCollection(resources);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (32)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (32)
36var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 41var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 66var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 71var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 97var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 102var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 128var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 133var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 160var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 165var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 192var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 197var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 227var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 232var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 262var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>(); 267var metadata = e.Metadata.GetMetadata<ResourceAssetCollection>();