Exemplo n.º 1
0
 public VirusTotalEngine(string apiKey)
 {
     _apiKey     = apiKey;
     _virusTotal = new VirusTotalNET.VirusTotal(apiKey)
     {
         UseTLS = true
     };
 }
Exemplo n.º 2
0
        public VirusTotalEngine(string apiKey, bool useSystemProxy)
        {
            _apiKey     = apiKey;
            _virusTotal = new VirusTotalNET.VirusTotal(apiKey)
            {
                UseTLS = true
            };

            if (useSystemProxy)
            {
                _virusTotal.Proxy             = WebRequest.DefaultWebProxy;
                _virusTotal.Proxy.Credentials = CredentialCache.DefaultNetworkCredentials;
            }
        }