private async void _timer_Tick(object sender, EventArgs e) { (sender as Timer).Enabled = false; await _rpc.DispatchEventsAsync(); (sender as Timer).Enabled = true; }