using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace task_or_not_task
public static class Program
public static void Main(string[] args)
public static IEnumerable<STREAM> Load(this IEnumerable<STREAM> ix)
foreach (var s in streams)
$"stream {s} loaded ..".localLog();
public static IEnumerable<PNG> Resize(this IEnumerable<STREAM> streams)
foreach (var s in streams)
$"image {s} resized ..".localLog();
public static IEnumerable<string> Upload(this IEnumerable<PNG> previews)
foreach (var p in previews)
$"image {p} resized ..".localLog();
public static IEnumerable<string> printReport(this IEnumerable<string> urls)
public static void randomWait()
var rand = new Random(DateTime.UtcNow.Millisecond);
Task.Delay(rand.Next(100, 400)).Wait();
public static void localLog(this string s) => Console.WriteLine(s);
public static string getUrl(this int previewNmae)
=> $@"uploaded file - URL: {dstUrl}\{previewNmae}.{dstExt}";
public const string dstUrl = @"https:\\my-site.com";
public const string dstExt = "png";
public const int initialIndex = 0;
public static STREAM[] streams = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };