|
|
@ -175,6 +175,11 @@ namespace MediaBrowser.Common.Plugins
|
|
|
|
/// <value>The type of the configuration.</value>
|
|
|
|
/// <value>The type of the configuration.</value>
|
|
|
|
public Type ConfigurationType => typeof(TConfigurationType);
|
|
|
|
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>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the name the assembly file.
|
|
|
|
/// Gets the name the assembly file.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -270,6 +275,8 @@ namespace MediaBrowser.Common.Plugins
|
|
|
|
Configuration = (TConfigurationType)configuration;
|
|
|
|
Configuration = (TConfigurationType)configuration;
|
|
|
|
|
|
|
|
|
|
|
|
SaveConfiguration();
|
|
|
|
SaveConfiguration();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ConfigurationChanged.Invoke(this, configuration);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// <inheritdoc />
|
|
|
|