<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

ProcessBase2

public abstract class ProcessBase2 : IRunnable, IDisposable
Defines an abstract object that performs a runnable process.
protected IAppSettings AppSettings { get; }

Gets the application settings.

Gets the cancellation token.

public ProcessContext Context { get; }

Gets the process context used to publish events.

protected IFileSystem FileSystem { get; }

Gets the file system wrapper.

protected ILog Logger { get; }

Gets the Relativity logger.

public Guid ProcessId { get; set; }

Gets or sets the process unique identifier.

protected ProcessBase2()

Initializes a new instance of the ProcessBase2 class.

protected ProcessBase2(ILog logger)

Initializes a new instance of the ProcessBase2 class.

protected ProcessBase2(ILog logger, CancellationTokenSource tokenSource)

Initializes a new instance of the ProcessBase2 class.

protected ProcessBase2(IFileSystem fileSystem, IAppSettings settings, ILog logger, CancellationTokenSource tokenSource)

Initializes a new instance of the ProcessBase2 class.

Creates the I/O reporter instance.

public void Dispose()

protected virtual void Dispose(bool disposing)

Releases unmanaged and - optionally - managed resources.

protected abstract void OnExecute()

Called when the process is executed.

public void Start()

Starts the runnable process.