C# Класс ClamAV.Managed.Async.ClamEngineExtensions

Provides methods for asynchronously performing virus scans.
Показать файл Открыть проект

Открытые методы

Метод Описание
LoadDatabaseAsync ( this engine ) : System.Threading.Tasks.Task

Asynchronously load databases from the default hardcoded path using standard options.

LoadDatabaseAsync ( this engine, LoadOptions options ) : System.Threading.Tasks.Task

Asynchronously load databases from the default hardcoded path using custom options.

LoadDatabaseAsync ( this engine, string path ) : System.Threading.Tasks.Task

Asynchronously load databases from a custom path using standard options.

LoadDatabaseAsync ( this engine, string path, LoadOptions options ) : System.Threading.Tasks.Task

Asynchronously loads a database file or directory into the engine.

ScanDirectoryAsync ( this engine, string path ) : Task>

Asynchronously scans a directory for viruses with the default scan options, recursing into subdirectories.

ScanDirectoryAsync ( this engine, string path, ScanOptions options ) : Task>

Asynchronously scans a directory for viruses, recursing into subdirectories.

ScanDirectoryAsync ( this engine, string path, ScanOptions options, bool recurse, int maxDepth ) : Task>

Asynchronously scans a directory for viruses, optionally recursing into subdirectories.

ScanFileAsync ( this engine, string path ) : Task

Asynchronously scans a file for viruses with the default scan options.

ScanFileAsync ( this engine, string path, ScanOptions options ) : Task

Asynchronously scans a file for viruses.

Описание методов

LoadDatabaseAsync() публичный статический Метод

Asynchronously load databases from the default hardcoded path using standard options.
public static LoadDatabaseAsync ( this engine ) : System.Threading.Tasks.Task
engine this ClamAV engine instance.
Результат System.Threading.Tasks.Task

LoadDatabaseAsync() публичный статический Метод

Asynchronously load databases from the default hardcoded path using custom options.
public static LoadDatabaseAsync ( this engine, LoadOptions options ) : System.Threading.Tasks.Task
engine this ClamAV engine instance.
options LoadOptions Options with which to load the database.
Результат System.Threading.Tasks.Task

LoadDatabaseAsync() публичный статический Метод

Asynchronously load databases from a custom path using standard options.
public static LoadDatabaseAsync ( this engine, string path ) : System.Threading.Tasks.Task
engine this ClamAV engine instance.
path string Path to the database file or a directory containing database files.
Результат System.Threading.Tasks.Task

LoadDatabaseAsync() публичный статический Метод

Asynchronously loads a database file or directory into the engine.
public static LoadDatabaseAsync ( this engine, string path, LoadOptions options ) : System.Threading.Tasks.Task
engine this ClamAV engine instance.
path string Path to the database file or a directory containing database files.
options LoadOptions Options with which to load the database.
Результат System.Threading.Tasks.Task

ScanDirectoryAsync() публичный статический Метод

Asynchronously scans a directory for viruses with the default scan options, recursing into subdirectories.
public static ScanDirectoryAsync ( this engine, string path ) : Task>
engine this ClamAV engine instance.
path string Path to scan.
Результат Task>

ScanDirectoryAsync() публичный статический Метод

Asynchronously scans a directory for viruses, recursing into subdirectories.
public static ScanDirectoryAsync ( this engine, string path, ScanOptions options ) : Task>
engine this ClamAV engine instance.
path string Path to scan.
options ScanOptions Scan options.
Результат Task>

ScanDirectoryAsync() публичный статический Метод

Asynchronously scans a directory for viruses, optionally recursing into subdirectories.
public static ScanDirectoryAsync ( this engine, string path, ScanOptions options, bool recurse, int maxDepth ) : Task>
engine this ClamAV engine instance.
path string Path to scan.
options ScanOptions Scan options.
recurse bool Whether to enter subdirectories.
maxDepth int Maximum depth to scan, or zero for unlimited.
Результат Task>

ScanFileAsync() публичный статический Метод

Asynchronously scans a file for viruses with the default scan options.
public static ScanFileAsync ( this engine, string path ) : Task
engine this ClamAV engine instance.
path string Path to the file to be scanned.
Результат Task

ScanFileAsync() публичный статический Метод

Asynchronously scans a file for viruses.
public static ScanFileAsync ( this engine, string path, ScanOptions options ) : Task
engine this ClamAV engine instance.
path string Path to the file to be scanned.
options ScanOptions Scan options.
Результат Task