aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Configuration/ConfigurationUpdateEventArgs.cs
blob: 90b1ff70c2902325901040d7c9f1ec6d33a6532f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;

namespace MediaBrowser.Common.Configuration
{
    /// <summary>
    /// <see cref="EventArgs" /> for the ConfigurationUpdated event.
    /// </summary>
    public class ConfigurationUpdateEventArgs : EventArgs
    {
        /// <summary>
        /// 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; }

        /// <summary>
        /// Gets the new configuration.
        /// </summary>
        /// <value>The new configuration.</value>
        public object NewConfiguration { get; }
    }
}