Class ServiceExposure
- Namespace
- OpenShell
- Assembly
- OpenShell.Sdk.dll
Registers a loopback HTTP service during sandbox creation.
public sealed record ServiceExposure : IEquatable<ServiceExposure>
- Inheritance
-
ServiceExposure
- Implements
- Inherited Members
Constructors
ServiceExposure(string, uint, ServiceAuthorizationMode)
Registers a loopback HTTP service during sandbox creation.
public ServiceExposure(string Name, uint TargetPort, ServiceAuthorizationMode AuthorizationMode = ServiceAuthorizationMode.Unspecified)
Parameters
NamestringThe service name.
TargetPortuintThe loopback port inside the sandbox.
AuthorizationModeServiceAuthorizationModeHow the gateway treats the Authorization header toward the service.
Properties
AuthorizationMode
How the gateway treats the Authorization header toward the service.
public ServiceAuthorizationMode AuthorizationMode { get; init; }
Property Value
Name
The service name.
public string Name { get; init; }
Property Value
TargetPort
The loopback port inside the sandbox.
public uint TargetPort { get; init; }