Share via


IDistributedApplicationBuilder.FileSystemService Property

Definition

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.

Applies to