Table of Contents

Interface IProcessFactory

Namespace
GroupeIsa.Neos.Shared.IO
Assembly
GroupeIsa.Neos.Shared.dll

Provides the functionalities of a factory of process.

public interface IProcessFactory

Methods

Create()

Creates a new process.

IProcess Create()

Returns

IProcess

The new process.

GetCurrentProcess()

Gets the current process.

IProcess GetCurrentProcess()

Returns

IProcess

The current process.

GetProcessById(int)

Gets the process with the specified identifier.

IProcess? GetProcessById(int id)

Parameters

id int

The process identifier.

Returns

IProcess

The process with the specified identifier, or null if no such process is running.

GetProcessesByName(string)

Gets all processes with the specified name.

IProcess[] GetProcessesByName(string name)

Parameters

name string

The process name.

Returns

IProcess[]

All processes with the specified name.