ISettingsChangeSuppressor Interface

Definition

Allows temporary blocking of changes to settings that have been modified since a certain version.

public interface ISettingsChangeSuppressor
type ISettingsChangeSuppressor = interface
Public Interface ISettingsChangeSuppressor

Properties

CurrentSettingsVersion

Gets a string which can later be passed in to SuppressChangesToSettingsNewerThan to block changes to settings modified since the time this method was called.

Methods

CanChange(String)

Indicates whether the specified setting is allowed to change based on active suppressions.

SuppressChangesToSettingsNewerThan(String)

Blocks changes to settings modified since a given previous version. Any such changes will be silently ignored. The suppression will continue until the return value is disposed. Only changes within the same "cone" of execution will be affected; if someone else tries to change an affected setting in a separate but concurrent async flow, that change will be allowed.

Applies to