16 instantiations of ImportMapDefinition
Microsoft.AspNetCore.Components.Endpoints (3)
Assets\ImportMapDefinition.cs (2)
58var importMap = new ImportMapDefinition(); 120var importMap = new ImportMapDefinition();
Builder\ResourceCollectionUrlEndpoint.cs (1)
59var importMapDefinition = new ImportMapDefinition(
Microsoft.AspNetCore.Components.Endpoints.Tests (10)
Assets\ImportMapDefinitionTest.cs (5)
27var importMapDefinition = new ImportMapDefinition( 54var importMapDefinition = new ImportMapDefinition( 84var importMapDefinition = new ImportMapDefinition( 135var firstImportMap = new ImportMapDefinition( 152var secondImportMap = new ImportMapDefinition(
ImportMapTest.cs (5)
38var importMapDefinition = new ImportMapDefinition( 84var importMapDefinition = new ImportMapDefinition( 129var importMapDefinition = new ImportMapDefinition( 149var otherImportMapDefinition = new ImportMapDefinition( 194var importMapDefinition = new ImportMapDefinition(
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
ScriptTagHelperTest.cs (3)
713var importMap = new ImportMapDefinition( 758var importMap = new ImportMapDefinition( 807importMap ?? new ImportMapDefinition(null, null, null)]),
44 references to ImportMapDefinition
Microsoft.AspNetCore.Components.Endpoints (20)
Assets\ImportMap.cs (3)
17private ImportMapDefinition? _computedImportMapDefinition; 30public ImportMapDefinition? ImportMapDefinition { get; set; } 52_computedImportMapDefinition = ImportMapDefinition ?? HttpContext?.GetEndpoint()?.Metadata.GetMetadata<ImportMapDefinition>();
Assets\ImportMapDefinition.cs (8)
15/// <see cref="ImportMapDefinition"/> instances are expensive to create, so it is recommended to cache them if 26/// Initializes a new instance of <see cref="ImportMapDefinition"/>."/> with the specified imports, scopes, and integrity. 56public static ImportMapDefinition FromResourceCollection(ResourceAssetCollection assets) 58var importMap = new ImportMapDefinition(); 118public static ImportMapDefinition Combine(params ImportMapDefinition[] sources) 120var importMap = new ImportMapDefinition(); 121foreach (var item in sources)
Assets\ImportMapSerializerContext.cs (1)
10[JsonSerializable(typeof(ImportMapDefinition))]
Builder\RazorComponentsEndpointConventionBuilderExtensions.cs (1)
39/// Sets a <see cref="ResourceAssetCollection"/> and <see cref="ImportMapDefinition"/> metadata
Builder\ResourceCollectionConvention.cs (5)
13private ImportMapDefinition? _collectionEndpointImportMap; 15private ImportMapDefinition? _collectionImportMap; 22_collectionImportMap = ImportMapDefinition.FromResourceCollection(_collection); 25ImportMapDefinition? map = null; 59ImportMapDefinition.Combine(_collectionImportMap, _collectionEndpointImportMap);
Builder\ResourceCollectionUrlEndpoint.cs (2)
21internal static (ImportMapDefinition, string) MapResourceCollectionEndpoints( 59var importMapDefinition = new ImportMapDefinition(
Microsoft.AspNetCore.Components.Endpoints.Tests (14)
Assets\ImportMapDefinitionTest.cs (9)
27var importMapDefinition = new ImportMapDefinition( 54var importMapDefinition = new ImportMapDefinition( 84var importMapDefinition = new ImportMapDefinition( 125var importMapDefinition = ImportMapDefinition.FromResourceCollection(resourceAssetCollection); 135var firstImportMap = new ImportMapDefinition( 152var secondImportMap = new ImportMapDefinition( 196var combinedImportMap = ImportMapDefinition.Combine(firstImportMap, secondImportMap);
ImportMapTest.cs (5)
38var importMapDefinition = new ImportMapDefinition( 84var importMapDefinition = new ImportMapDefinition( 129var importMapDefinition = new ImportMapDefinition( 149var otherImportMapDefinition = new ImportMapDefinition( 194var importMapDefinition = new ImportMapDefinition(
Microsoft.AspNetCore.Mvc.TagHelpers (4)
ScriptTagHelper.cs (4)
191/// The <see cref="ImportMapDefinition"/> to use for the document. 198public ImportMapDefinition ImportMap { get; set; } 247var importMap = ImportMap ?? ViewContext.HttpContext.GetEndpoint()?.Metadata.GetMetadata<ImportMapDefinition>();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
ScriptTagHelperTest.cs (3)
713var importMap = new ImportMapDefinition( 758var importMap = new ImportMapDefinition( 797private Endpoint CreateEndpoint(ImportMapDefinition importMap = null)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
src\Shared\Components\ResourceCollectionResolver.cs (3)
15private ImportMapDefinition _importMapDefinition; 128internal ImportMapDefinition ResolveImportMap() 130return _importMapDefinition ??= ImportMapDefinition.FromResourceCollection(_resourceCollection);