private IExecutorProvider CreateExecutorProvider(DbToolDatabase database, DbConnection connection, AssemblyHandler handler) { if (handler.HasType<IExecutorProvider>()) { return handler.CreateInstance<IExecutorProvider>(_config, database, connection); } return new DefaultExecutorProvider(_config, database, connection); }
private IExecutorProvider CreateExecutorProvider(DbToolDatabase database, DbConnection connection, AssemblyHandler handler) { if (handler.HasType <IExecutorProvider>()) { return(handler.CreateInstance <IExecutorProvider>(_config, database, connection, _cSharpExecutor)); } return(new DefaultExecutorProvider(_config, database, connection, _cSharpExecutor)); }