Table of Contents

Interface IProjectFileWriter

Namespace
RDCore.SDK.Workspace
Assembly
RDCore.SDK.dll

Writes a workspace's .rdproj ProjectFile to disk — the write counterpart of IProjectFileLoader. Used to scaffold a new workspace and (eventually) to persist edits a client makes to the project structure.

public interface IProjectFileWriter

Methods

SaveAsync(ProjectFile, CancellationToken)

Serializes project to <project.Uri>/.rdproj, overwriting any existing file. The parent directory must exist. IsDirty is not consulted — the caller decides whether a write is warranted.

Task SaveAsync(ProjectFile project, CancellationToken token = default)

Parameters

project ProjectFile

The project to write; its Uri is the workspace root.

token CancellationToken

A token that cancels the write.

Returns

Task

Exceptions

IOException

The file could not be written.