DestinationState Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- model
- DestinationModel
Exceptions
model
is null
.