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