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