VirusTotalvirusTotal=newVirusTotal("YOUR API KEY HERE");//Use HTTPS instead of HTTPvirusTotal.UseTLS=true;//Create the EICAR test virus. See http://www.eicar.org/86-0-Intended-use.htmlbyte[]eicar=Encoding.ASCII.GetBytes(@"X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*");//Check if the file has been scanned before.FileReportreport=awaitvirusTotal.GetFileReportAsync(eicar);Console.WriteLine("Seen before: "+(report.ResponseCode==FileReportResponseCode.Present?"Yes":"No"));
Take a look at the VirusTotal.Examples project for more examples.