Class DestinationModel
Immutable representation of the portions of a destination that only change in reaction to configuration changes (e.g. address).
Inheritance
System.Object
DestinationModel
Namespace: Yarp.ReverseProxy.Model
Assembly: Yarp.ReverseProxy.dll
Syntax
public sealed class DestinationModel : object
Remarks
All members must remain immutable to avoid thread safety issues. Instead, instances of DestinationModel are replaced in their entirety when values need to change.
Constructors
| Improve this Doc View SourceDestinationModel(DestinationConfig)
Creates a new instance. This constructor is for tests and infrastructure, this type is normally constructed by the configuration loading infrastructure.
Declaration
public DestinationModel(DestinationConfig destination)
Parameters
Type | Name | Description |
---|---|---|
DestinationConfig | destination |
Properties
| Improve this Doc View SourceConfig
This destination's configuration.
Declaration
public DestinationConfig Config { get; }
Property Value
Type | Description |
---|---|
DestinationConfig |