private void RegisterAsyncEvents() { AsyncRunner asyncRunner = new AsyncRunner(); this.btnTestEventHandler.Click += asyncRunner.CreateEventHandler(Guid.NewGuid().ToString(), ButtonClickTask); }