Interface IConfigChangeListener
Allows subscribing to events notifying you when the configuration is loaded and applied, or when those actions fail.
Namespace: Yarp.ReverseProxy.Configuration
Assembly: Yarp.ReverseProxy.dll
Syntax
public interface IConfigChangeListener
Methods
| Improve this Doc View SourceConfigurationApplied(IReadOnlyList<IProxyConfig>)
Invoked once the configuration has been successfully applied.
Declaration
void ConfigurationApplied(IReadOnlyList<IProxyConfig> proxyConfigs)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<IProxyConfig> | proxyConfigs | The list of instances that have been applied. |
ConfigurationApplyingFailed(IReadOnlyList<IProxyConfig>, Exception)
Invoked when an error occurs while applying the configuration.
Declaration
void ConfigurationApplyingFailed(IReadOnlyList<IProxyConfig> proxyConfigs, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<IProxyConfig> | proxyConfigs | The list of instances that were being processed. |
Exception | exception | The thrown exception. |
ConfigurationLoaded(IReadOnlyList<IProxyConfig>)
Invoked once the configuration have been successfully loaded.
Declaration
void ConfigurationLoaded(IReadOnlyList<IProxyConfig> proxyConfigs)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<IProxyConfig> | proxyConfigs | The list of instances that have been loaded. |
ConfigurationLoadingFailed(IProxyConfigProvider, Exception)
Invoked when an error occurs while loading the configuration.
Declaration
void ConfigurationLoadingFailed(IProxyConfigProvider configProvider, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
IProxyConfigProvider | configProvider | The instance of the configuration provider that failed to provide the configuration. |
Exception | exception | The thrown exception. |