/// <summary>
 /// Initializes a new instance of the DatabaseDrivenLoader class
 /// </summary>
 /// <param name="factory">the factory that is used to initialize plugins</param>
 /// <param name="database">the database that is used to access the configured plugins</param>
 /// <param name="refreshCycle">a timeout whithin the objects must be refreshed</param>
 /// <param name="tableName">the name of the used plugin-Table</param>
 public DatabaseDrivenLoader(PluginFactory factory, IConnectionBuffer database, string tableName, string genericParamTableName, int refreshCycle)
     : base(factory)
 {
     refresher                  = new Timer(CheckPlugins, null, Timeout.Infinite, Timeout.Infinite);
     this.factory               = factory;
     this.database              = database;
     this.refreshCycle          = refreshCycle;
     this.tableName             = tableName;
     this.genericParamTableName = genericParamTableName;
 }
 /// <summary>
 /// Initializes a new instance of the DatabaseDrivenLoader class
 /// </summary>
 /// <param name="factory">the factory that is used to initialize plugins</param>
 /// <param name="database">the database that is used to access the configured plugins</param>
 /// <param name="refreshCycle">a timeout whithin the objects must be refreshed</param>
 public DatabaseDrivenLoader(PluginFactory factory, IConnectionBuffer database, int refreshCycle)
     : this(factory, database, "Plugins", null, refreshCycle)
 {
 }
 /// <summary>
 /// Initializes a new instance of the DatabaseProxyService class
 /// </summary>
 /// <param name="connectionProvider">the connectionProvider that is used to access the database</param>
 public DatabaseProxyService(IConnectionBuffer connectionProvider)
 {
     this.connectionProvider = connectionProvider;
 }
 /// <summary>
 /// Initializes a new instance of the DatabaseDrivenLoader class
 /// </summary>
 /// <param name="factory">the factory that is used to initialize plugins</param>
 /// <param name="database">the database that is used to access the configured plugins</param>
 /// <param name="configurationName">the name of the used Loader-Configuration</param>
 public DatabaseDrivenLoader(PluginFactory factory, IConnectionBuffer database, string configurationName)
     : this(factory, database, DatabaseLoaderConfig.Helper.LoaderConfigurations[configurationName].PluginTableName, DatabaseLoaderConfig.Helper.LoaderConfigurations[configurationName].ParamTableName, DatabaseLoaderConfig.Helper.LoaderConfigurations[configurationName].RefreshCycle)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the ConnectionMapper class
 /// </summary>
 /// <param name="source">the database Source that provides access to the database</param>
 /// <param name="target">the target collection that will consume the connected source</param>
 public ConnectionMapper(IConnectionBuffer source, IDataCollector target)
 {
     this.connector = source;
     this.collector = target;
 }