31 references to Url
Microsoft.AspNetCore.Components (4)
ResourceAsset.cs (1)
28
$"Url: '{
Url
}' - Properties: {string.Join(", ", Properties?.Select(p => $"{p.Name} = {p.Value}") ?? [])}";
ResourceAssetCollection.cs (3)
40
throw new InvalidOperationException($"The static asset '{property.Value}' is already mapped to {value.
Url
}.");
43
contentSpecificUrls.Add(resource.
Url
);
57
public string this[string key] => _uniqueUrlMappings.TryGetValue(key, out var value) ? value.
Url
: key;
Microsoft.AspNetCore.Components.Endpoints (8)
Assets\ImportMapDefinition.cs (4)
61
if (!(asset.
Url
.EndsWith(".mjs", StringComparison.OrdinalIgnoreCase) ||
62
asset.
Url
.EndsWith(".js", StringComparison.OrdinalIgnoreCase)) ||
72
importMap._integrity[$"./{asset.
Url
}"] = integrity;
78
importMap._imports[$"./{label}"] = $"./{asset.
Url
}";
Builder\ResourceCollectionUrlEndpoint.cs (1)
119
var url = resource.
Url
;
Builder\ResourcePreloadCollection.cs (1)
41
var header = CreateHeader(headerBuilder, asset.
Url
, asset.Properties);
src\Shared\Components\ResourceCollectionResolver.cs (2)
117
resources.Sort((a, b) => string.Compare(a.
Url
, b.
Url
, StringComparison.Ordinal));
Microsoft.AspNetCore.Components.Endpoints.Tests (6)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (6)
78
Assert.Equal("named.css", list[0].
Url
);
99
Assert.Equal("default.css", list[0].
Url
);
121
Assert.Equal("default.css", list[0].
Url
);
143
Assert.Equal("default.css", list[0].
Url
);
166
Assert.Equal("named.css", list[0].
Url
);
192
Assert.Equal("named.css", list[0].
Url
);
Microsoft.AspNetCore.Components.Tests (1)
ResourceAssetCollectionTest.cs (1)
21
Assert.Equal("image1.jpg", collectionAsReadOnlyList[0].
Url
);
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (5)
79
Assert.Equal("named.css", list[0].
Url
);
101
Assert.Equal("default.css", list[0].
Url
);
124
Assert.Equal("default.css", list[0].
Url
);
147
Assert.Equal("named.css", list[0].
Url
);
173
Assert.Equal("named.css", list[0].
Url
);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
src\Shared\Components\ResourceCollectionResolver.cs (2)
117
resources.Sort((a, b) => string.Compare(a.
Url
, b.
Url
, StringComparison.Ordinal));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (5)
106
Assert.Equal("named.css", list[0].
Url
);
137
Assert.Equal("default.css", list[0].
Url
);
169
Assert.Equal("default.css", list[0].
Url
);
201
Assert.Equal("named.css", list[0].
Url
);
236
Assert.Equal("named.css", list[0].
Url
);