4 instantiations of ImportMapDefinition
Microsoft.AspNetCore.Components.Endpoints (4)
_generated\1\ImportMapSerializerContext.ImportMapDefinition.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Components.
ImportMapDefinition
((global::System.Collections.Generic.IReadOnlyDictionary<string, string>)args[0], (global::System.Collections.Generic.IReadOnlyDictionary<string, global::System.Collections.Generic.IReadOnlyDictionary<string, string>>)args[1], (global::System.Collections.Generic.IReadOnlyDictionary<string, string>)args[2]),
Assets\ImportMapDefinition.cs (2)
58
var importMap = new
ImportMapDefinition
();
120
var importMap = new
ImportMapDefinition
();
Builder\ResourceCollectionUrlEndpoint.cs (1)
59
var importMapDefinition = new
ImportMapDefinition
(
54 references to ImportMapDefinition
Microsoft.AspNetCore.Components.Endpoints (45)
_generated\1\ImportMapSerializerContext.ImportMapDefinition.g.cs (23)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ImportMapDefinition
>? _ImportMapDefinition;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ImportMapDefinition
> ImportMapDefinition
22
get => _ImportMapDefinition ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ImportMapDefinition
>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.
ImportMapDefinition
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ImportMapDefinition
> Create_ImportMapDefinition(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.
ImportMapDefinition
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ImportMapDefinition
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Components.
ImportMapDefinition
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ImportMapDefinition
).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>), typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, global::System.Collections.Generic.IReadOnlyDictionary<string, string>>), typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>)}, modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Components.
ImportMapDefinition
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ImportMapDefinition
),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ImportMapDefinition
)obj).Imports,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ImportMapDefinition
).GetProperty("Imports", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ImportMapDefinition
),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ImportMapDefinition
)obj).Scopes,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ImportMapDefinition
).GetProperty("Scopes", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, global::System.Collections.Generic.IReadOnlyDictionary<string, string>>), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ImportMapDefinition
),
100
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ImportMapDefinition
)obj).Integrity,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ImportMapDefinition
).GetProperty("Integrity", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null),
118
private void ImportMapDefinitionSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Components.
ImportMapDefinition
? value)
129
IReadOnlyDictionaryStringStringSerializeHandler(writer, ((global::Microsoft.AspNetCore.Components.
ImportMapDefinition
)value).Imports);
131
IReadOnlyDictionaryStringIReadOnlyDictionaryStringStringSerializeHandler(writer, ((global::Microsoft.AspNetCore.Components.
ImportMapDefinition
)value).Scopes);
133
IReadOnlyDictionaryStringStringSerializeHandler(writer, ((global::Microsoft.AspNetCore.Components.
ImportMapDefinition
)value).Integrity);
_generated\6\ImportMapSerializerContext.GetJsonTypeInfo.g.cs (1)
22
if (type == typeof(global::Microsoft.AspNetCore.Components.
ImportMapDefinition
))
Assets\ImportMap.cs (3)
17
private
ImportMapDefinition
? _computedImportMapDefinition;
30
public
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.
56
public static
ImportMapDefinition
FromResourceCollection(ResourceAssetCollection assets)
58
var
importMap = new ImportMapDefinition();
118
public static
ImportMapDefinition
Combine(params
ImportMapDefinition
[] sources)
120
var
importMap = new ImportMapDefinition();
121
foreach (
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 (6)
13
private
ImportMapDefinition
? _collectionEndpointImportMap;
15
private
ImportMapDefinition
? _collectionImportMap;
22
_collectionImportMap =
ImportMapDefinition
.FromResourceCollection(_collection);
25
ImportMapDefinition
? map = null;
59
var
importMap = _collectionEndpointImportMap == null ? _collectionImportMap :
60
ImportMapDefinition
.Combine(_collectionImportMap, _collectionEndpointImportMap);
Builder\ResourceCollectionUrlEndpoint.cs (2)
21
internal static (
ImportMapDefinition
, string) MapResourceCollectionEndpoints(
59
var
importMapDefinition = new ImportMapDefinition(
Microsoft.AspNetCore.Mvc.RazorPages (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
41
var
importMap = resolver.ResolveImportMap();
Microsoft.AspNetCore.Mvc.TagHelpers (4)
ScriptTagHelper.cs (4)
191
/// The <see cref="
ImportMapDefinition
"/> to use for the document.
198
public
ImportMapDefinition
ImportMap { get; set; }
261
var
importMap = ImportMap ?? ViewContext.HttpContext.GetEndpoint()?.Metadata.GetMetadata<
ImportMapDefinition
>();
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
51
var
importMap = resolver.ResolveImportMap();
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (3)
15
private
ImportMapDefinition
_importMapDefinition;
205
internal
ImportMapDefinition
ResolveImportMap()
207
return _importMapDefinition ??=
ImportMapDefinition
.FromResourceCollection(_resourceCollection);