Class FileLinePipingKit
Perform lines piping to a file by another thread.
public class FileLinePipingKit
- Inheritance
-
FileLinePipingKit
- Inherited Members
- Extension Methods
Constructors
FileLinePipingKit(string)
Initializes a new instance of the FileLinePipingKit class with the specified file path.
public FileLinePipingKit(string file)
Parameters
file
stringThe file path where the lines will be written.
Properties
ExceptionAction
Gets or sets the action to execute when an exception occurs.
public Action<Exception> ExceptionAction { get; set; }
Property Value
File
Gets the file path where the lines are being written.
public string File { get; }
Property Value
Task
Gets the task that represents the asynchronous file writing operation.
public Task Task { get; }
Property Value
Methods
Finish()
Completes the writing operation.
public void Finish()
FinishAndWait()
Completes the writing operation and waits for it to finish.
public void FinishAndWait()
WriteLine(string)
Writes a line to the file.
public void WriteLine(string line)
Parameters
line
stringThe line to write.