Exemplo n.º 1
0
        public RhspClientContext CreateClientContext()
        {
            reflectControlValues();

            RhspClientContext context = new RhspClientContext(
                ServiceUri,
                new RhspSecurity
            {
                AuthMode          = AuthMode,
                CustomCredentials = CustomCredentials
            }
                )
            {
                EncryptorSecret = encryptorSecret
            };

#if DEBUG
            // Stop client from disconnecting during debug.
            context.Timeout = TimeSpan.FromHours(1);
#endif

            return(context);
        }
 public void SetSourceContext(RhspClientContext context)
 {
     ((DnsImportWizardForm)ParentWizard).SourceContext = context;
 }