InMemoryConfigProvider Class
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.
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. |