namespace MediaBrowser.Common.Configuration
{
///
/// Extensions for .
///
public static class ConfigurationInvalidationBusExtensions
{
///
/// Announces a write this instance originated, and stays silent for a write induced by an
/// invalidation another instance published.
///
///
/// This is the backstop for the write path: a consumer reacting to an applied invalidation by
/// writing - including a plugin that knows nothing about the bus - cannot turn that write into a
/// notice of its own.
///
/// The bus.
/// The cache that was written.
/// The configuration key or library path that was written, if any.
public static void PublishLocalWrite(this IConfigurationInvalidationBus bus, ConfigurationInvalidationScope scope, string? target)
{
if (ConfigurationInvalidationContext.IsApplyingRemoteInvalidation)
{
return;
}
bus.Publish(scope, target);
}
}
}