ProfanityFilter.Hosting
13.3.0
dotnet add package ProfanityFilter.Hosting --version 13.3.0
NuGet\Install-Package ProfanityFilter.Hosting -Version 13.3.0
<PackageReference Include="ProfanityFilter.Hosting" Version="13.3.0" />
<PackageVersion Include="ProfanityFilter.Hosting" Version="13.3.0" />
<PackageReference Include="ProfanityFilter.Hosting" />
paket add ProfanityFilter.Hosting --version 13.3.0
#r "nuget: ProfanityFilter.Hosting, 13.3.0"
#:package ProfanityFilter.Hosting@13.3.0
#addin nuget:?package=ProfanityFilter.Hosting&version=13.3.0
#tool nuget:?package=ProfanityFilter.Hosting&version=13.3.0
Profanity Filter: Hosting
This is a .NET library intended to be used as a hosting library as part of the Aspire app host project. It exposes the ProfanityFilterResource which is a container resource, that resolves to ghcr.io/ievangelist/profanity-filter-api:latest container image.
Get started
To install the 📦 ProfanityFilter.Hosting NuGet package:
dotnet add package ProfanityFilter.Hosting
To register the profanity filter resource in your application, call AddProfanityFilter on an IDistributedApplication instance:
var builder = DistributedApplication.CreateBuilder(args);
var filter = builder.AddProfanityFilter("profanity-filter")
.WithCustomDataBindMount("./CustomData");
builder.AddProject<Projects.ProfanityFilter_Api>("api")
.WithReference(filter)
.WaitFor(filter);
builder.Build().Run();
This library pairs nicely with the 📦 ProfanityFilter.Client library, which provides a client for the Profanity Filter API.
| 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
- Aspire.Hosting (>= 13.3.0)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Hosting (>= 10.0.7)
- Microsoft.Extensions.Http (>= 10.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.3.0 | 94 | 5/8/2026 |
| 9.0.7-alpha.0.10 | 280 | 12/15/2025 |
| 9.0.7-alpha.0.9 | 237 | 12/15/2025 |
| 9.0.7-alpha.0.8 | 249 | 12/15/2025 |
| 9.0.7-alpha.0.7 | 399 | 12/11/2025 |
| 9.0.7-alpha.0.2 | 241 | 3/6/2025 |
| 0.0.0-alpha.0.273 | 236 | 12/15/2025 |