3 writes to AssetPath
Microsoft.AspNetCore.StaticAssets.Tests (3)
StaticAssetsIntegrationTests.cs (3)
499
AssetPath
= resource.Path,
520
AssetPath
= $"{resource.Path}.gz",
578
AssetPath
= "sample.txt",
7 references to AssetPath
Microsoft.AspNetCore.StaticAssets (7)
Development\StaticAssetDevelopmentRuntimeHandler.cs (4)
44
var fileInfo = context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(asset.
AssetPath
);
95
var fileInfo = _context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(_asset.
AssetPath
);
100
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.");