Share via


InMemoryConfigProvider Class

Definition

Provides an implementation of IProxyConfigProvider to support config being generated by code.

public sealed class InMemoryConfigProvider : Yarp.ReverseProxy.Configuration.IProxyConfigProvider
type InMemoryConfigProvider = class
    interface IProxyConfigProvider
Public NotInheritable Class InMemoryConfigProvider
Implements IProxyConfigProvider
Inheritance
InMemoryConfigProvider
Implements

Constructors

InMemoryConfigProvider(IReadOnlyList<RouteConfig>, IReadOnlyList<ClusterConfig>, String)

Creates a new instance, specifying a revision id of the configuration.

InMemoryConfigProvider(IReadOnlyList<RouteConfig>, IReadOnlyList<ClusterConfig>)

Creates a new instance.

Methods

GetConfig()

Implementation of the IProxyConfigProvider.GetConfig method to supply the current snapshot of configuration

Update(IReadOnlyList<RouteConfig>, IReadOnlyList<ClusterConfig>, String)

Swaps the config state with a new snapshot of the configuration, then signals that the old one is outdated.

Update(IReadOnlyList<RouteConfig>, IReadOnlyList<ClusterConfig>)

Swaps the config state with a new snapshot of the configuration, then signals that the old one is outdated.

Applies to