Operation

Description

abstract class Tinman.Core.Threading.Operations.Operation

Derived from

Disposable abstract
IOperation

Extended by

TestOperation sealed

Abstract base class for IOperation implementations.

Public / Constructors

Checksum


[OwnerReturn]
public static method Checksum → (1)

file in : Path

[not-null]
Path to file for which to compute an MD5 checksum.

returns → IOperation

The operation.

Creates an MD5 checksum (*.md5, like Unix md5sum) for the given file.

The operation will create a new file in the same directory as file in:

some_input_file.txt -> some_input_file.md5

Copy


[OwnerReturn]
public static method Copy → (4)

file in : Path

[not-null]
The source file path. The last path element may contain wildcards.

dir in : Path

[not-null]
The target directory path.

resume opt : bool = false

Resume copy operation if target file already exists?

timestamp opt : bool = false

Update last modification timestamps after finishing each file copy?

returns → IOperation

The operation.

Copies zero or more files.

Delete


[OwnerReturn]
public static method Delete → (1)

file in : Path

[not-null]
The file path. The last path element may contain wildcards.

returns → IOperation

The operation.

Deletes zero or more existing files.

Flush


[OwnerReturn]
public static method Flush → (1)

flushable in : IFlushable

[not-null]
The flushable object.

returns → IOperation

The operation.

Returns an IOperation that calls IFlushable.Flush.

Protected / Methods

DoRun


[ThrowAny]
protected abstract method DoRun → (1)

progress in : IProgressMonitor

The progress monitor object to use (never null).

Performs the actual work of this operation.

Configuration

Config


public static attribute Config → (get)

value : IConfigurator<IOperation>

[not-null]
The configurator object.

The configurator object for this type.