Class FileSystemScaffoldWriter
Namespace: Cephalon.Scaffolding.IO
Assembly: Cephalon.Scaffolding.dll
Writes a rendered scaffold to the local file system.
public static class FileSystemScaffoldWriterInheritance
Section titled “Inheritance”object ← FileSystemScaffoldWriter
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”WriteAsync(string, RenderedScaffold, bool, CancellationToken)
Section titled “ WriteAsync(string, RenderedScaffold, bool, CancellationToken)”Writes the supplied scaffold to disk.
public static Task WriteAsync(string rootPath, RenderedScaffold scaffold, bool overwrite = false, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”rootPath string
The target root directory.
scaffold RenderedScaffold
The rendered scaffold to write.
overwrite bool
true to overwrite existing files; otherwise the write fails when a target file exists.
cancellationToken CancellationToken
A token that can cancel the write operation.
Returns
Section titled “Returns”A task that completes when all folders and files have been written.