diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2020-10-11 16:41:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-11 16:41:30 +0100 |
| commit | 8c0748b677eaac0eafefda774aef8abb5870aaf1 (patch) | |
| tree | 63b902213dacadf581e0c74494d295e7ee7b364c | |
| parent | 0b73a1d90f80456ab6ea8e53134eae193aa9d5da (diff) | |
Update BasePlugin.cs
Added ConfigurationChanged event.
| -rw-r--r-- | MediaBrowser.Common/Plugins/BasePlugin.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Plugins/BasePlugin.cs b/MediaBrowser.Common/Plugins/BasePlugin.cs index b89bc7eba..55443e518 100644 --- a/MediaBrowser.Common/Plugins/BasePlugin.cs +++ b/MediaBrowser.Common/Plugins/BasePlugin.cs @@ -176,6 +176,11 @@ namespace MediaBrowser.Common.Plugins public Type ConfigurationType => typeof(TConfigurationType); /// <summary> + /// Gets or sets the event handler that is triggered when this configuration changes. + /// </summary> + public EventHandler<BasePluginConfiguration> ConfigurationChanged { get; set; } + + /// <summary> /// Gets the name the assembly file. /// </summary> /// <value>The name of the assembly file.</value> @@ -270,6 +275,8 @@ namespace MediaBrowser.Common.Plugins Configuration = (TConfigurationType)configuration; SaveConfiguration(); + + ConfigurationChanged.Invoke(this, configuration); } /// <inheritdoc /> |
