Table of Contents

Class FakeForwardRequest

Namespace
OpenShell.Testing
Assembly
OpenShell.Sdk.Testing.dll

A TCP or SSH relay request presented to the handler registered with OnForward(Func<FakeForwardRequest, Stream, CancellationToken, Task>).

public sealed record FakeForwardRequest : IEquatable<FakeForwardRequest>
Inheritance
FakeForwardRequest
Implements
Inherited Members

Constructors

FakeForwardRequest(string, string, uint?, string?)

A TCP or SSH relay request presented to the handler registered with OnForward(Func<FakeForwardRequest, Stream, CancellationToken, Task>).

public FakeForwardRequest(string Workspace, string Sandbox, uint? Port, string? ServiceId)

Parameters

Workspace string

The workspace of the sandbox.

Sandbox string

The sandbox name.

Port uint?

The target port; null for an SSH relay.

ServiceId string

Optional correlation id the caller passed.

Properties

IsSsh

True when the request targets the sandbox SSH relay.

public bool IsSsh { get; }

Property Value

bool

Port

The target port; null for an SSH relay.

public uint? Port { get; init; }

Property Value

uint?

Sandbox

The sandbox name.

public string Sandbox { get; init; }

Property Value

string

ServiceId

Optional correlation id the caller passed.

public string? ServiceId { get; init; }

Property Value

string

Workspace

The workspace of the sandbox.

public string Workspace { get; init; }

Property Value

string