示例#1
0
 public ET_Engine(IDataSourceFactory dataSourceFactory,
                  IDataResolver dataResolver,
                  IDataSinkFactory dataSinkFactory,
                  IEtLogger logger,
                  IDiskIOHandler diskIOHandler,
                  RuntimeArgs runtimeSettings)
 {
     this._dataSourceFactory      = dataSourceFactory;
     this._dataMapHandler         = dataResolver;
     this._dataSinkFactory        = dataSinkFactory;
     this._logger                 = logger;
     this._diskIOHandler          = diskIOHandler;
     this._runtimeSettings        = runtimeSettings;
     this._toSinkDataChainBuilder = new SourceToSinkDataChainBuilder(logger);
 }
示例#2
0
 public DataCleanerConfig(RuntimeArgs runtimeArgs, IDiskIOHandler iOHandler)
 {
     this._cleanerConfigFileName = runtimeArgs.DefaultCleanerConfig;
     this._iOHandler             = iOHandler;
     this._cleanerConfigs        = JsonConvert.DeserializeObject <Dictionary <string, Dictionary <string, KeyValuePair <string, string> > > >(this._iOHandler.FileReadAllText(this._cleanerConfigFileName));
 }