Skip to content

Commit 518de8c

Browse files
authored
Make plugin option values publicly settable (#413)
1 parent 2fc3f58 commit 518de8c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Microsoft.Performance.SDK/Options/PluginOption.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ private protected PluginOption()
5050
/// value it was set to. This means that this value will be <c>false</c> even if the option's value is
5151
/// manually set to its default value.
5252
/// </summary>
53-
internal bool IsUsingDefault { get; private protected set; }
53+
public bool IsUsingDefault { get; private protected set; }
5454

5555
/// <summary>
5656
/// Applies the default value to this option.
5757
/// </summary>
58-
internal abstract void ApplyDefault();
58+
public abstract void ApplyDefault();
5959

6060
/// <summary>
6161
/// Raises the <see cref="OptionChanged"/> event.

src/Microsoft.Performance.SDK/Options/PluginOption`1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public T CurrentValue
5151
{
5252
return this.currentValue;
5353
}
54-
internal set
54+
set
5555
{
5656
this.IsUsingDefault = isApplyingDefault;
5757

@@ -61,7 +61,7 @@ internal set
6161
}
6262

6363
/// <inheritdoc />
64-
internal override void ApplyDefault()
64+
public override void ApplyDefault()
6565
{
6666
this.isApplyingDefault = true;
6767
this.CurrentValue = this.DefaultValue;

0 commit comments

Comments
 (0)