Table of Contents

Interface IFileWriter

Namespace
Refitter.Core
Assembly
Refitter.Core.dll

Writes a PlannedFile to disk, creating directories as needed. Each distribution form (CLI, MSBuild, Source Generator) provides its own adapter that integrates with its own reporting/progress pipeline.

public interface IFileWriter

Methods

WriteAsync(PlannedFile, CancellationToken)

Writes the planned file to disk, creating directories as necessary.

Task WriteAsync(PlannedFile file, CancellationToken cancellationToken = default)

Parameters

file PlannedFile

The planned file to write.

cancellationToken CancellationToken

A cancellation token.

Returns

Task

A task representing the asynchronous write operation.