ExternalProgramComponentCancellableProcess Structure

Represents a process that can be cancelled.

Definition

Namespace: Quine.Schemas.Core
Assembly: Quine.Schemas.Core (in Quine.Schemas.Core.dll) Version: 1.0.0+0ea0706914ee4edf2b0ed66bec3ab4d062a43b68
C#
public readonly struct CancellableProcess : IDisposable
Inheritance
Object    ValueType    ExternalProgramComponentCancellableProcess
Implements
IDisposable

Remarks

This type exists to ensure disposal of the underlying Process. To cancel the process, use the cancellation token passed to StartProcess(ProcessStartInfo, ActionProcess, CancellationToken, ActionProcess).

Properties

IsCancellable True if the process can be cancelled.

Methods

Dispose Disposes of the process and registration. The process is NOT cancelled if this is invoked while the process is running.

Fields

Process An instance of a successfully started process.
Registration Handle for the registered cancellation action.

See Also