コード例 #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))
                .ConfigureAwait(true);

                this.exceptionDialog.Show(this, caption, e);
                Close();
            }
        }
コード例 #2
0
 public RemoteDesktopConnectionFailedEvent(InstanceLocator vmInstance, RdpException exception)
     : base(vmInstance)
 {
     this.Exception = exception;
 }