3 writes to AssetPath
Microsoft.AspNetCore.StaticAssets.Tests (3)
StaticAssetsIntegrationTests.cs (3)
499AssetPath = resource.Path, 520AssetPath = $"{resource.Path}.gz", 577AssetPath = "sample.txt",
11 references to AssetPath
Microsoft.AspNetCore.StaticAssets (11)
Development\StaticAssetDevelopmentRuntimeHandler.cs (8)
51Debug.Assert(originalETag != null, $"The static asset descriptor {asset.Route} - {asset.AssetPath} does not have an original-resource property."); 52Debug.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."); 59var fileInfo = context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(asset.AssetPath); 119Debug.Assert(etag != null, $"The static asset descriptor {descriptor.Route} - {descriptor.AssetPath} does not have an ETag response header."); 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."); 161var fileInfo = _context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(_asset.AssetPath); 166if (assetDescriptor.AssetPath != _asset.AssetPath)
StaticAssetDescriptor.cs (1)
73return $"Route: {Route} Path: {AssetPath}";
StaticAssetsInvoker.cs (2)
85_fileProvider.GetFileInfo(_resource.AssetPath) is IFileInfo file and { Exists: true } ? 87throw new FileNotFoundException($"The file '{_resource.AssetPath}' could not be found.");