5 writes to AssetPath
Microsoft.AspNetCore.StaticAssets (2)
StaticAssetsManifestJsonContext.StaticAssetDescriptor.g.cs (2)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor(){ Route = (string)args[0],
AssetPath
= (string)args[1] },
82
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor)obj).
AssetPath
= value!,
Microsoft.AspNetCore.StaticAssets.Tests (3)
StaticAssetsIntegrationTests.cs (3)
499
AssetPath
= resource.Path,
520
AssetPath
= $"{resource.Path}.gz",
577
AssetPath
= "sample.txt",
13 references to AssetPath
Microsoft.AspNetCore.StaticAssets (13)
Development\StaticAssetDevelopmentRuntimeHandler.cs (8)
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.");
59
var fileInfo = context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(asset.
AssetPath
);
119
Debug.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.");
161
var fileInfo = _context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(_asset.
AssetPath
);
166
if (assetDescriptor.
AssetPath
!= _asset.
AssetPath
)
StaticAssetDescriptor.cs (1)
73
return $"Route: {Route} Path: {
AssetPath
}";
StaticAssetsInvoker.cs (2)
85
_fileProvider.GetFileInfo(_resource.
AssetPath
) is IFileInfo file and { Exists: true } ?
87
throw new FileNotFoundException($"The file '{_resource.
AssetPath
}' could not be found.");
StaticAssetsManifestJsonContext.StaticAssetDescriptor.g.cs (2)
81
Getter = static obj => ((global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor)obj).
AssetPath
,
179
writer.WriteString(PropName_AssetFile, ((global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor)value).
AssetPath
);