void OnError(ErrorEventArgs e) { if (dispatcher == null) { return; } var quiet = dispatcher.RunAsync(CoreDispatcherPriority.Normal, new DispatchedHandler(() => { if (Error != null) { Error(this, e); } })); }