2 writes to AssetPath
Microsoft.AspNetCore.StaticAssets (2)
Generated\361d1da7f942c932\StaticAssetsManifestJsonContext.StaticAssetDescriptor.g.cs (2)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor(){ Route = (string)args[0], AssetPath = (string)args[1] }, 104Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor)obj).AssetPath = value!,
14 references to AssetPath
Microsoft.AspNetCore.StaticAssets (14)
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); 128Debug.Assert(etag != null, $"The static asset descriptor {descriptor.Route} - {descriptor.AssetPath} does not have an ETag response header."); 130$"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."); 182var fileInfo = _context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(_asset.AssetPath); 187if (assetDescriptor.AssetPath != _asset.AssetPath)
Generated\361d1da7f942c932\StaticAssetsManifestJsonContext.StaticAssetDescriptor.g.cs (2)
103Getter = static obj => ((global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor)obj).AssetPath, 206writer.WriteString(PropName_AssetFile, ((global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor)value).AssetPath);
StaticAssetDescriptor.cs (1)
84return $"Route: {Route} Path: {AssetPath}";
StaticAssetsInvoker.cs (3)
92_fileProvider.GetFileInfo(_resource.AssetPath) is IFileInfo file and { Exists: true } ? 94throw new FileNotFoundException($"The file '{_resource.AssetPath}' could not be found."); 150if (metadataOnlyResponse && !_fileProvider.GetFileInfo(_resource.AssetPath).Exists)