/// <summary> /// Ensure the plugin search object is properly initialized. /// </summary> private void Initialize() { if (this.pluginSearch != null) { return; } this.pluginSearch = new ImportClientPluginSearch(); this.pluginSearch.Initialize(configuration); }
private void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { if (this.pluginSearch != null) { this.pluginSearch.Dispose(); this.pluginSearch = null; } } this.disposed = true; } }
/// <summary> /// Initializes a new instance of the <see cref="ImportClientPluginFactory"/> class. /// </summary> /// <param name="configuration"> /// The plugin configuration. /// </param> public ImportClientPluginFactory(PluginConfiguration configuration) { this.configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); this.pluginSearch = null; this.disposed = false; }