Ejemplo n.º 1
0
        /// <summary>
        /// Initializes all default providers.
        /// </summary>
        public Providers(RuriLibSettingsService settings)
        {
            if (settings != null)
            {
                RandomUA         = new DefaultRandomUAProvider(settings);
                Captcha          = new CaptchaSharpProvider(settings);
                PuppeteerBrowser = new DefaultPuppeteerBrowserProvider(settings);
                ProxySettings    = new DefaultProxySettingsProvider(settings);
                Security         = new DefaultSecurityProvider(settings);
            }

            RNG = new DefaultRNGProvider();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes all default providers.
        /// </summary>
        public Providers(RuriLibSettingsService settings)
        {
            if (settings != null)
            {
                RandomUA         = new DefaultRandomUAProvider(settings);
                EmailDomains     = new FileEmailDomainRepository();
                Captcha          = new CaptchaSharpProvider(settings);
                PuppeteerBrowser = new DefaultPuppeteerBrowserProvider(settings);
                GeneralSettings  = new DefaultGeneralSettingsProvider(settings);
                ProxySettings    = new DefaultProxySettingsProvider(settings);
                Security         = new DefaultSecurityProvider(settings);
            }

            RNG = new DefaultRNGProvider();
        }