File Scan | C# SDK
File Scan
FileScanClientFile Scan client.
var config = new Config("pangea_token", "pangea_domain");
var builder = new FileScanClient.Builder(config);
var client = builder.Build();
Scan
FileScanClient.Scan(FileScanRequest, FileStream)Scan a file for malicious content.
string filepath = "./path/to/file.pdf";
var file = new FileStream(filepath, FileMode.Open, FileAccess.Read);
var request = new FileScanRequest.Builder().WithProvider("crowdstrike").WithRaw(true).WithVerbose(true).Build();
var response = await client.Scan(request, file, TransferMethod.Direct);
FileScanData data = response.Result.Data;