3 writes to Route
Microsoft.AspNetCore.StaticAssets.Tests (3)
StaticAssetsIntegrationTests.cs (3)
498
Route
= resource.Path,
519
Route
= resource.Path,
576
Route
= "sample.txt",
15 references to Route
Microsoft.AspNetCore.Components.Endpoints (2)
src\Shared\Components\ResourceCollectionResolver.cs (2)
196
resources.Add(new ResourceAsset(descriptor.
Route
, properties));
200
resources.Add(new ResourceAsset(descriptor.
Route
, null));
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
src\Shared\Components\ResourceCollectionResolver.cs (2)
196
resources.Add(new ResourceAsset(descriptor.
Route
, properties));
200
resources.Add(new ResourceAsset(descriptor.
Route
, null));
Microsoft.AspNetCore.StaticAssets (11)
Development\StaticAssetDevelopmentRuntimeHandler.cs (8)
45
if (originalETag is not null && _descriptorsMap.TryGetValue((asset.
Route
, originalETag), out originalAsset))
51
Debug.Assert(originalETag != null, $"The static asset descriptor {asset.
Route
} - {asset.AssetPath} does not have an original-resource property.");
52
Debug.Assert(originalAsset != null, $"The static asset descriptor {asset.
Route
} - {asset.AssetPath} has an original-resource property that does not match any known static asset descriptor.");
113
if (etag != null && !_descriptorsMap.ContainsKey((descriptor.
Route
, etag)))
115
_descriptorsMap[(descriptor.
Route
, etag)] = descriptor;
119
Debug.Assert(etag != null, $"The static asset descriptor {descriptor.
Route
} - {descriptor.AssetPath} does not have an ETag response header.");
120
Debug.Assert(_descriptorsMap.ContainsKey((descriptor.
Route
, etag)),
121
$"The static asset descriptor {descriptor.
Route
} - {descriptor.AssetPath} has an ETag response header that is already registered in the map. This should not happen, as the ETag should be unique for each static asset.");
StaticAssetDescriptor.cs (1)
73
return $"Route: {
Route
} Path: {AssetPath}";
StaticAssetEndpointFactory.cs (1)
23
RoutePatternFactory.Parse(resource.
Route
),
StaticAssetsInvoker.cs (1)
80
public string Route => _resource.
Route
;