private async Task ShowErrorAndClose(string caption, RdpException e)
        {
            using (TraceSources.IapDesktop.TraceMethod().WithParameters(e.Message))
            {
                await this.eventService.FireAsync(
                    new RemoteDesktopConnectionFailedEvent(this.Instance, e));

                this.exceptionDialog.Show(this, caption, e);
                Close();
            }
        }
 public RemoteDesktopConnectionFailedEvent(VmInstanceReference vmInstance, RdpException exception)
     : base(vmInstance)
 {
     this.Exception = exception;
 }