Vixen
02b45cc4
csharp
public interface IRealmProcessHandle

A realm process, as its launcher can see it.

Read the guide page for this →

Remarks

Deliberately smaller than System.Diagnostics.Process: an identity, the two ends of stdio, an exit, and a way to end it. Everything ProcessPlacement does is expressed against this, which is what lets its tests run a fleet with no processes in it.

Fields and properties (3)

  • string Id

    Something an operator can act on — a pid, or whatever stood in for one.

  • bool HasExited

    Whether it has gone.

  • int ExitCode

    What it exited with, once HasExited is true.

Events (1)

  • Action<string>? OutputLine

    Every line the process wrote to stdout, as it writes them.

Methods (3)

  • bool WriteLine(string line)

    Says a line to the process's stdin.

  • void Kill()

    Ends it, now.

  • Task WaitForExitAsync(CancellationToken cancellation)

    Waits for it to exit.

Used by (7)

  • FakeProcessVixen.Live.Placement.Process.Tests
  • FakeProcessHostVixen.Live.Placement.Process.Tests
  • HandleVixen.Live.Placement.Process
  • IRealmProcessHostVixen.Live.Placement.Process
  • ProcessPlacementVixen.Live.Placement.Process
  • RunningVixen.Live.Placement.Process
  • SystemProcessHostVixen.Live.Placement.Process