Esempio n. 1
0
        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;
 }
 public RemoteDesktopConnectionFailedEvent(InstanceLocator vmInstance, RdpException exception)
     : base(vmInstance)
 {
     this.Exception = exception;
 }