static async Task Main(string[] _) { MyEvent += OnMyEvent; await MyEvent.InvokeAndWaitAsync(); Console.WriteLine("All delegates have completed."); Console.ReadLine(); }