ConfigurationUpdateEventArgs.cs 1015 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. namespace MediaBrowser.Common.Configuration
  3. {
  4. /// <summary>
  5. /// <see cref="EventArgs" /> for the ConfigurationUpdated event.
  6. /// </summary>
  7. public class ConfigurationUpdateEventArgs : EventArgs
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="ConfigurationUpdateEventArgs"/> class.
  11. /// </summary>
  12. /// <param name="key">The configuration key.</param>
  13. /// <param name="newConfiguration">The new configuration.</param>
  14. public ConfigurationUpdateEventArgs(string key, object newConfiguration)
  15. {
  16. Key = key;
  17. NewConfiguration = newConfiguration;
  18. }
  19. /// <summary>
  20. /// Gets the key.
  21. /// </summary>
  22. /// <value>The key.</value>
  23. public string Key { get; }
  24. /// <summary>
  25. /// Gets the new configuration.
  26. /// </summary>
  27. /// <value>The new configuration.</value>
  28. public object NewConfiguration { get; }
  29. }
  30. }