public override void Apply() { CurrentValue = optionTextBoxValueHolder.Value; ResetStringValue(); onValueChanged?.Invoke(CurrentValue); ParentSettings.OnOptionModified(this); }
public Worker( IOptions <MyWorkerSettings> myWorkerSettings, IOptions <CustomSettings> customSettings, IOptions <ParentSettings> parentSettings) { this.myWorkerSettings = myWorkerSettings.Value; this.customSettings = customSettings.Value; this.parentSettings = parentSettings.Value; }