aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Configuration/ConfigurationUpdateEventArgs.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2022-08-12 20:37:31 +0200
committerBond_009 <bond.009@outlook.com>2022-08-18 13:56:23 +0200
commit5036afd69127cc6f6b0801329b2b04f21aee71f5 (patch)
tree24ca3d5f4dc15298e686c6c4944d9d04f9f40cc7 /MediaBrowser.Common/Configuration/ConfigurationUpdateEventArgs.cs
parent63d943aab92a4b5f69e625a269eb830bcbfb4d22 (diff)
Minor cleanup
Diffstat (limited to 'MediaBrowser.Common/Configuration/ConfigurationUpdateEventArgs.cs')
-rw-r--r--MediaBrowser.Common/Configuration/ConfigurationUpdateEventArgs.cs25
1 files changed, 18 insertions, 7 deletions
diff --git a/MediaBrowser.Common/Configuration/ConfigurationUpdateEventArgs.cs b/MediaBrowser.Common/Configuration/ConfigurationUpdateEventArgs.cs
index 2df87d879..90b1ff70c 100644
--- a/MediaBrowser.Common/Configuration/ConfigurationUpdateEventArgs.cs
+++ b/MediaBrowser.Common/Configuration/ConfigurationUpdateEventArgs.cs
@@ -1,22 +1,33 @@
-#nullable disable
-#pragma warning disable CS1591
-
using System;
namespace MediaBrowser.Common.Configuration
{
+ /// <summary>
+ /// <see cref="EventArgs" /> for the ConfigurationUpdated event.
+ /// </summary>
public class ConfigurationUpdateEventArgs : EventArgs
{
/// <summary>
- /// Gets or sets the key.
+ /// Initializes a new instance of the <see cref="ConfigurationUpdateEventArgs"/> class.
+ /// </summary>
+ /// <param name="key">The configuration key.</param>
+ /// <param name="newConfiguration">The new configuration.</param>
+ public ConfigurationUpdateEventArgs(string key, object newConfiguration)
+ {
+ Key = key;
+ NewConfiguration = newConfiguration;
+ }
+
+ /// <summary>
+ /// Gets the key.
/// </summary>
/// <value>The key.</value>
- public string Key { get; set; }
+ public string Key { get; }
/// <summary>
- /// Gets or sets the new configuration.
+ /// Gets the new configuration.
/// </summary>
/// <value>The new configuration.</value>
- public object NewConfiguration { get; set; }
+ public object NewConfiguration { get; }
}
}