public VirusTotalEngine(string apiKey) { _apiKey = apiKey; _virusTotal = new VirusTotalNET.VirusTotal(apiKey) { UseTLS = true }; }
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; } }