jellyfin/MediaBrowser.Common/Configuration/ConfigurationUpdateEventArgs.cs

34 lines
1015 B
C#
Raw Normal View History

using System;
2018-12-27 23:27:57 +00:00
namespace MediaBrowser.Common.Configuration
{
2022-08-12 18:37:31 +00:00
/// <summary>
/// <see cref="EventArgs" /> for the ConfigurationUpdated event.
/// </summary>
2018-12-27 23:27:57 +00:00
public class ConfigurationUpdateEventArgs : EventArgs
{
/// <summary>
2022-08-12 18:37:31 +00:00
/// 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.
2018-12-27 23:27:57 +00:00
/// </summary>
/// <value>The key.</value>
2022-08-12 18:37:31 +00:00
public string Key { get; }
2018-12-27 23:27:57 +00:00
/// <summary>
2022-08-12 18:37:31 +00:00
/// Gets the new configuration.
2018-12-27 23:27:57 +00:00
/// </summary>
/// <value>The new configuration.</value>
2022-08-12 18:37:31 +00:00
public object NewConfiguration { get; }
2018-12-27 23:27:57 +00:00
}
}