8 implementations of PhysicalPath
Microsoft.AspNetCore.Hosting (2)
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
266public string? PhysicalPath => null; 290public string PhysicalPath => _source.PhysicalPath ?? string.Empty;
Microsoft.Extensions.FileProviders.Abstractions (1)
NotFoundFileInfo.cs (1)
50public string? PhysicalPath => null;
Microsoft.Extensions.FileProviders.Embedded (3)
EmbeddedResourceFileInfo.cs (1)
63public string? PhysicalPath => null;
Manifest\ManifestDirectoryInfo.cs (1)
34public string? PhysicalPath => null;
Manifest\ManifestFileInfo.cs (1)
33public string? PhysicalPath => null;
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalDirectoryInfo.cs (1)
46public string PhysicalPath => _info.FullName;
PhysicalFileInfo.cs (1)
32public string PhysicalPath => _info.FullName;
22 references to PhysicalPath
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
831var filePath = fileSource.FileProvider?.GetFileInfo(fileSource.Path).PhysicalPath;
Microsoft.AspNetCore.Diagnostics (2)
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
122if (!string.IsNullOrEmpty(fileInfo.PhysicalPath)) 124lines = File.ReadLines(fileInfo.PhysicalPath);
Microsoft.AspNetCore.Hosting (3)
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
122if (!string.IsNullOrEmpty(fileInfo.PhysicalPath)) 124lines = File.ReadLines(fileInfo.PhysicalPath);
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
290public string PhysicalPath => _source.PhysicalPath ?? string.Empty;
Microsoft.AspNetCore.Http.Extensions (2)
SendFileResponseExtensions.cs (2)
87if (string.IsNullOrEmpty(file.PhysicalPath)) 108await response.SendFileAsync(file.PhysicalPath, offset, count, cancellationToken);
Microsoft.AspNetCore.StaticAssets (5)
Development\StaticAssetDevelopmentRuntimeHandler.cs (2)
231return _original.SendFileAsync(fileInfo.PhysicalPath!, offset, actualCount, cancellationToken); 237return _original.SendFileAsync(fileInfo.PhysicalPath!, 0, fileInfo.Length, cancellationToken);
StaticAssetsInvoker.cs (3)
82public string PhysicalPath => FileInfo.PhysicalPath ?? string.Empty; 232var logPath = !string.IsNullOrEmpty(FileInfo.PhysicalPath) ? FileInfo.PhysicalPath : Route;
Microsoft.AspNetCore.StaticFiles (3)
StaticFileContext.cs (3)
113public string PhysicalPath => _fileInfo.PhysicalPath ?? string.Empty; 387var logPath = !string.IsNullOrEmpty(_fileInfo.PhysicalPath) ? _fileInfo.PhysicalPath : SubPath;
Microsoft.Extensions.Configuration.FileExtensions (5)
FileConfigurationProvider.cs (5)
68if (!string.IsNullOrEmpty(file?.PhysicalPath)) 70error.Append(SR.Format(SR.Error_ExpectedPhysicalPath, file.PhysicalPath)); 79if (fileInfo.PhysicalPath != null) 85fileInfo.PhysicalPath, 107var exception = new InvalidDataException(SR.Format(SR.Error_FailedToLoad, file.PhysicalPath), ex);
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
110=> Source.FileProvider?.GetFileInfo("/")?.PhysicalPath ?? "<Unknown>";