private async Task ShowErrorAndClose(string caption, RdpException e) { using (TraceSources.IapDesktop.TraceMethod().WithParameters(e.Message)) { await this.eventService.FireAsync( new RemoteDesktopConnectionFailedEvent(this.Instance, e)) .ConfigureAwait(true); this.exceptionDialog.Show(this, caption, e); Close(); } }
public RemoteDesktopConnectionFailedEvent(InstanceLocator vmInstance, RdpException exception) : base(vmInstance) { this.Exception = exception; }