Vivet.AspNetCore.RequestVirusScan
9.0.10
dotnet add package Vivet.AspNetCore.RequestVirusScan --version 9.0.10
NuGet\Install-Package Vivet.AspNetCore.RequestVirusScan -Version 9.0.10
<PackageReference Include="Vivet.AspNetCore.RequestVirusScan" Version="9.0.10" />
<PackageVersion Include="Vivet.AspNetCore.RequestVirusScan" Version="9.0.10" />
<PackageReference Include="Vivet.AspNetCore.RequestVirusScan" />
paket add Vivet.AspNetCore.RequestVirusScan --version 9.0.10
#r "nuget: Vivet.AspNetCore.RequestVirusScan, 9.0.10"
#:package Vivet.AspNetCore.RequestVirusScan@9.0.10
#addin nuget:?package=Vivet.AspNetCore.RequestVirusScan&version=9.0.10
#tool nuget:?package=Vivet.AspNetCore.RequestVirusScan&version=9.0.10
Vivet.AspNetCore.RequestVirusScan
Middleware to configure requset virus scan of uploaded files.
This library uses ClamAV for scanning and detecting virusses and malware in files. A server or container running ClamAV is required to use this middleware.
Registration
To configure the Request Virus Scan Middleware, first add the required services to the IServiceCollection, as shown below.
services
.AddRequestVirusScan(x =>
{
// Configuration.
});
or, read the configuration from the clamav section in app.settings.json,
"ClamAv": {
"Host": "",
"Port": 0,
"UseHealthCheck": true
}
...and register.
services
.AddRequestVirusScan();
Next, register the middleware in the pipeline, as shown below.
applicationBuilder
.UseRequestVirusScan();
The middleware is now configured in the pipeline, and all uploaded file will be scaned for virusses.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- AspNetCore.HealthChecks.Network (>= 9.0.0)
- nClam (>= 9.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Vivet.AspNetCore.RequestVirusScan:
| Package | Downloads |
|---|---|
|
NanoCore
The project is inspired by years of tedious repetitions, continuously re-writing similar code-snippets and libraries, to handle common functionality, not related to the business domain, such as logging, data persistence, message queuing, documentation, validation and similar. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.10 | 227 | 9/9/2025 |
- Moved CI/CD to GitHub Actions.