Vivet.AspNetCore.RequestVirusScan
9.0.0
dotnet add package Vivet.AspNetCore.RequestVirusScan --version 9.0.0
NuGet\Install-Package Vivet.AspNetCore.RequestVirusScan -Version 9.0.0
<PackageReference Include="Vivet.AspNetCore.RequestVirusScan" Version="9.0.0" />
paket add Vivet.AspNetCore.RequestVirusScan --version 9.0.0
#r "nuget: Vivet.AspNetCore.RequestVirusScan, 9.0.0"
// Install Vivet.AspNetCore.RequestVirusScan as a Cake Addin #addin nuget:?package=Vivet.AspNetCore.RequestVirusScan&version=9.0.0 // Install Vivet.AspNetCore.RequestVirusScan as a Cake Tool #tool nuget:?package=Vivet.AspNetCore.RequestVirusScan&version=9.0.0
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
- AspNetCore.HealthChecks.Network (>= 8.0.1)
- 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.
- Updated to .NET 9.