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