Skip to main content

File Scan | C# SDK

File Scan

FileScanClient

File 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.

required parameters

FileScanRequest

FileScanRequest

FileStream

FileStream file

Response Object

Task<Response<FileScanResult>>

Response<FileScanResult>

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;