Пример #1
0
        static void Main(string[] args)
        {
            AsyncTest obj = new AsyncTest();

            // Part 1 : Introduction
            // Depicting Task.Run().
            // Sync and async ways of reading and writing to a file.
            obj.Task1(10);

            // Part 2 : Obtaining the results from an asynchronous operation
            obj.Task2(10);
        }
Пример #2
0
 public AsyncTestDriver()
 {
     _test = new AsyncTest();
 }