Exemple #1
0
 public void AddConector(ConnectorConfig connector)
 {
     if (connector is CsvConnectorConfig csvConfig)
     {
         Connectors.Add(new CsvConnector(csvConfig));
     }
     if (connector is JsonConnectorConfig jsonConfig)
     {
         Connectors.Add(new JsonConnector(jsonConfig));
     }
     if (connector is MySqlConnectorConfig mySqlConfig)
     {
         Connectors.Add(new MySqlConnector(mySqlConfig));
     }
     if (connector is SqlServerConnectorConfig sqlServerConfig)
     {
         Connectors.Add(new SqlServerConnector(sqlServerConfig));
     }
     if (connector is SqliteConnectorConfig sqliteConfig)
     {
         Connectors.Add(new SqliteConnector(sqliteConfig));
     }
     if (connector is ElasticSearchConnectorConfig elasticConfig)
     {
         Connectors.Add(new ElasticSearchConnector(elasticConfig));
     }
 }
Exemple #2
0
 public void AddConector(ConnectorConfig connector)
 {
     if (connector is CsvConnectorConfig csvConfig)
     {
         Connectors.Add(new CsvConnector(csvConfig));
     }
     if (connector is MySqlConnectorConfig mySqlConfig)
     {
         Connectors.Add(new MySqlConnector(mySqlConfig));
     }
     if (connector is SqlServerConnectorConfig sqlServerConfig)
     {
         Connectors.Add(new SqlServerConnector(sqlServerConfig));
     }
     if (connector is SqliteConnectorConfig sqliteConfig)
     {
         Connectors.Add(new SqliteConnector(sqliteConfig));
     }
 }