Esempio n. 1
0
 static void Main(string[] args)
 {
     using (new Cancellation(5000))
     {
         Task.Run(PingAsync);
         ReadLine();
         Cancellation.Request();
         ReadLine();
     }
 }