Table of Contents

Class DestinationModel

Namespace
Yarp.ReverseProxy.Model
Assembly
Yarp.ReverseProxy.dll

Immutable representation of the portions of a destination that only change in reaction to configuration changes (e.g. address).

public sealed class DestinationModel
Inheritance
DestinationModel
Inherited Members

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

DestinationModel(DestinationConfig)

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

public DestinationModel(DestinationConfig destination)

Parameters

destination DestinationConfig

Properties

Config

This destination's configuration.

public DestinationConfig Config { get; }

Property Value

DestinationConfig