internal SendCustomerTLSHandshake( BackgroundWorker UseWorker, BackWorkerInfo UseWInfo ) { Worker = UseWorker; WInfo = UseWInfo; StartTime = new ECTime(); StartTime.SetToNow(); MsgClient = new CustomerTLSClient( WInfo.ServerIPOrDomainName ); }
internal void StartSendingForX509() { if( IsDisposed ) return; ShowStatus( "Starting to send for X.509 data." ); BackWorkerInfo WInfo = new BackWorkerInfo(); WInfo.ServerIPOrDomainName = MForm.X509Data.GetRandomDomainName(); if( DialogResult.Yes != MessageBox.Show( "Send for this?\r\n" + WInfo.ServerIPOrDomainName, MainForm.MessageBoxTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Question )) return; try { if( !GetX509BackgroundWorker.IsBusy ) { GetX509BackgroundWorker.RunWorkerAsync( WInfo ); } else { ShowStatus( "Background process is busy for X.509 data." ); } } catch( Exception Except ) { ShowStatus( "Exception in StartSendingForX509():" ); ShowStatus( Except.Message ); return; } }