コード例 #1
0
        /// <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);
        }
コード例 #2
0
        private void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    if (this.pluginSearch != null)
                    {
                        this.pluginSearch.Dispose();
                        this.pluginSearch = null;
                    }
                }

                this.disposed = true;
            }
        }
コード例 #3
0
 /// <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;
 }