3 writes to AssetPath
Microsoft.AspNetCore.StaticAssets.Tests (3)
StaticAssetsIntegrationTests.cs (3)
499
AssetPath
= resource.Path,
520
AssetPath
= $"{resource.Path}.gz",
577
AssetPath
= "sample.txt",
11 references to AssetPath
Microsoft.AspNetCore.StaticAssets (11)
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.");