Delen via


DestinationState Constructors

Definition

Overloads

DestinationState(String)

Creates a new instance. This constructor is for tests and infrastructure, this type is normally constructed by the configuration loading infrastructure.

DestinationState(String, DestinationModel)

Constructor overload to additionally initialize the DestinationModel for tests and infrastructure, such as updating the ReverseProxyFeature via HttpContextFeaturesExtensions

DestinationState(String)

Source:
DestinationState.cs
Source:
DestinationState.cs

Creates a new instance. This constructor is for tests and infrastructure, this type is normally constructed by the configuration loading infrastructure.

public DestinationState (string destinationId);
new Yarp.ReverseProxy.Model.DestinationState : string -> Yarp.ReverseProxy.Model.DestinationState
Public Sub New (destinationId As String)

Parameters

destinationId
String

Applies to

DestinationState(String, DestinationModel)

Source:
DestinationState.cs
Source:
DestinationState.cs

Constructor overload to additionally initialize the DestinationModel for tests and infrastructure, such as updating the ReverseProxyFeature via HttpContextFeaturesExtensions

public DestinationState (string destinationId, Yarp.ReverseProxy.Model.DestinationModel model);
new Yarp.ReverseProxy.Model.DestinationState : string * Yarp.ReverseProxy.Model.DestinationModel -> Yarp.ReverseProxy.Model.DestinationState
Public Sub New (destinationId As String, model As DestinationModel)

Parameters

destinationId
String

Exceptions

model is null.

Applies to