Vivet.AspNetCore.RequestVirusScan
10.0.4
dotnet add package Vivet.AspNetCore.RequestVirusScan --version 10.0.4
NuGet\Install-Package Vivet.AspNetCore.RequestVirusScan -Version 10.0.4
<PackageReference Include="Vivet.AspNetCore.RequestVirusScan" Version="10.0.4" />
<PackageVersion Include="Vivet.AspNetCore.RequestVirusScan" Version="10.0.4" />
<PackageReference Include="Vivet.AspNetCore.RequestVirusScan" />
paket add Vivet.AspNetCore.RequestVirusScan --version 10.0.4
#r "nuget: Vivet.AspNetCore.RequestVirusScan, 10.0.4"
#:package Vivet.AspNetCore.RequestVirusScan@10.0.4
#addin nuget:?package=Vivet.AspNetCore.RequestVirusScan&version=10.0.4
#tool nuget:?package=Vivet.AspNetCore.RequestVirusScan&version=10.0.4
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 =>
{
x.Host = null,
x.Port = 3310,
UseHealthCheck = true,
HealthCheckFailureStatus = "Unhealthy"
});
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 | net10.0 is compatible. 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. |
-
net10.0
- AspNetCore.HealthChecks.Network (>= 9.0.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.3.9)
- Microsoft.Extensions.Options (>= 10.0.7)
- nClam (>= 9.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Vivet.AspNetCore.RequestVirusScan:
| Package | Downloads |
|---|---|
|
Nano.App.Api
This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details. |
GitHub repositories
This package is not used by any popular GitHub repositories.
- Updated NuGets.