Beispiel #1
0
        static async Task Main(string[] args)
        {
            var coinManager = new AsyncCoinManager();
            var coinTask    = coinManager.AcquireAsyncCoinAsync();

            Console.WriteLine("from main: I am not blocked");
            await coinTask;

            Console.ReadLine();
        }
 public CoinsController()
 {
     coinManager = new AsyncCoinManager();
 }
 static Program()
 {
     asyncCoinManager = new  AsyncCoinManager();
 }