Vivet.AspNetCore.RequestVirusScan
0.1.1
dotnet add package Vivet.AspNetCore.RequestVirusScan --version 0.1.1
NuGet\Install-Package Vivet.AspNetCore.RequestVirusScan -Version 0.1.1
<PackageReference Include="Vivet.AspNetCore.RequestVirusScan" Version="0.1.1" />
paket add Vivet.AspNetCore.RequestVirusScan --version 0.1.1
#r "nuget: Vivet.AspNetCore.RequestVirusScan, 0.1.1"
// Install Vivet.AspNetCore.RequestVirusScan as a Cake Addin #addin nuget:?package=Vivet.AspNetCore.RequestVirusScan&version=0.1.1 // Install Vivet.AspNetCore.RequestVirusScan as a Cake Tool #tool nuget:?package=Vivet.AspNetCore.RequestVirusScan&version=0.1.1
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 | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.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.
- Initial