ข้ามไปยังเนื้อหา

Class FileSystemScaffoldWriter

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Scaffolding.IO
Assembly: Cephalon.Scaffolding.dll

Writes a rendered scaffold to the local file system.

public static class FileSystemScaffoldWriter

objectFileSystemScaffoldWriter

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

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)

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.

Task

A task that completes when all folders and files have been written.