5 writes to AssetPath
Microsoft.AspNetCore.StaticAssets (2)
StaticAssetsManifestJsonContext.StaticAssetDescriptor.g.cs (2)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor(){ Route = (string)args[0], AssetPath = (string)args[1] }, 82Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor)obj).AssetPath = value!,
Microsoft.AspNetCore.StaticAssets.Tests (3)
StaticAssetsIntegrationTests.cs (3)
499AssetPath = resource.Path, 520AssetPath = $"{resource.Path}.gz", 577AssetPath = "sample.txt",
13 references to AssetPath
Microsoft.AspNetCore.StaticAssets (13)
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.");
StaticAssetsManifestJsonContext.StaticAssetDescriptor.g.cs (2)
81Getter = static obj => ((global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor)obj).AssetPath, 179writer.WriteString(PropName_AssetFile, ((global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor)value).AssetPath);