Class FakeForwardRequest
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
WorkspacestringThe workspace of the sandbox.
SandboxstringThe sandbox name.
Portuint?The target port; null for an SSH relay.
ServiceIdstringOptional correlation id the caller passed.
Properties
IsSsh
True when the request targets the sandbox SSH relay.
public bool IsSsh { get; }
Property Value
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
ServiceId
Optional correlation id the caller passed.
public string? ServiceId { get; init; }
Property Value
Workspace
The workspace of the sandbox.
public string Workspace { get; init; }