IDistributedApplicationBuilder.FileSystemService Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the service for managing Aspire file system operations.
public virtual Aspire.Hosting.IFileSystemService FileSystemService { get; }
member this.FileSystemService : Aspire.Hosting.IFileSystemService
Public Overridable ReadOnly Property FileSystemService As IFileSystemService
Property Value
Remarks
The FileSystemService provides a centralized way to manage temporary files and directories used by Aspire, enabling testability and consistent temp file management.
Resources and infrastructure code should use this service instead of static methods like GetTempPath() or CreateTempSubdirectory(String) to ensure consistent directory management across the application.