Table of Contents

Method AppendLineSharedAsync

Namespace
Oscova.Agents.Utils
Assembly
Oscova.Agents.dll

AppendLineSharedAsync(string, string, CancellationToken)

Appends a single line through a shared handle so concurrent readers do not fail on file locks.

public static Task AppendLineSharedAsync(string path, string line, CancellationToken cancellationToken = default)

Parameters

path string
line string
cancellationToken CancellationToken

Returns

Task