public AsagiThreadConsumer(AsagiConfig config, string[] boards) { Config = config; ConnectionPool = new SqlConnectionPool(config.ConnectionString, config.SqlConnectionPoolSize); foreach (string board in boards) { ConnectionPool.ForEachConnection(async connection => GetPreparedStatements(board).PrepareConnection(connection)).Wait(); } ThumbDownloadLocation = Path.Combine(Config.DownloadLocation, "thumb"); ImageDownloadLocation = Path.Combine(Config.DownloadLocation, "images"); Directory.CreateDirectory(ThumbDownloadLocation); Directory.CreateDirectory(ImageDownloadLocation); }