solidcode.work.infra
2.1.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package solidcode.work.infra --version 2.1.3
NuGet\Install-Package solidcode.work.infra -Version 2.1.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="solidcode.work.infra" Version="2.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="solidcode.work.infra" Version="2.1.3" />
<PackageReference Include="solidcode.work.infra" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add solidcode.work.infra --version 2.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: solidcode.work.infra, 2.1.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package solidcode.work.infra@2.1.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=solidcode.work.infra&version=2.1.3
#tool nuget:?package=solidcode.work.infra&version=2.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
solidcode.work.infra
solidcode.work.infra is a reusable infrastructure library for .NET developers.
It provides ready-to-use building blocks for:
- Databases: EF Core (SQL Server, PostgreSQL), MongoDB
- Caching: Redis
- Messaging: MassTransit + RabbitMQ
- Resilience: Polly-based HTTP client helpers
- Unified responses:
TResponse<T>andMessageErrorType - Logging: Built-in
ILogger<T>integration with optional Serilog extension - Authentication
- JWT bearer authentication with issuer, audience, and secret key validation
- One‑line setup via
AddSolidcodeJwtAuthentication()
Installation
dotnet add package solidcode.work.infra
### 🔐 Authentication
Enable JWT authentication with a single extension:
```csharp
builder.Services.AddSolidcodeJwtAuthentication();
var app = builder.Build();
app.UseAuthentication();
app.UseAuthorization();
| 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. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Dapper (>= 2.1.72)
- MassTransit.AspNetCore (>= 7.3.1)
- MassTransit.RabbitMq (>= 8.5.2)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.8)
- Microsoft.EntityFrameworkCore (>= 9.0.8)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.8)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 9.0.8)
- Microsoft.Extensions.Configuration (>= 9.0.8)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.8)
- Microsoft.Extensions.DependencyInjection (>= 9.0.8)
- Microsoft.Extensions.Http (>= 9.0.8)
- Microsoft.Extensions.Http.Polly (>= 9.0.8)
- Microsoft.IdentityModel.Tokens (>= 8.7.0)
- MongoDB.Bson (>= 3.4.3)
- MongoDB.Driver (>= 3.4.3)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 9.0.4)
- Polly (>= 8.6.3)
- Serilog.AspNetCore (>= 8.0.1)
- Serilog.Enrichers.Environment (>= 2.3.0)
- Serilog.Enrichers.Process (>= 2.0.2)
- Serilog.Enrichers.Thread (>= 3.1.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Swashbuckle.AspNetCore (>= 9.0.3)
- System.IdentityModel.Tokens.Jwt (>= 8.7.0)
- Yarp.ReverseProxy (>= 2.3.0)
-
net9.0
- Dapper (>= 2.1.72)
- MassTransit.AspNetCore (>= 7.3.1)
- MassTransit.RabbitMq (>= 8.5.2)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.8)
- Microsoft.EntityFrameworkCore (>= 9.0.8)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.8)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 9.0.8)
- Microsoft.Extensions.Configuration (>= 9.0.8)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.8)
- Microsoft.Extensions.DependencyInjection (>= 9.0.8)
- Microsoft.Extensions.Http (>= 9.0.8)
- Microsoft.Extensions.Http.Polly (>= 9.0.8)
- Microsoft.IdentityModel.Tokens (>= 8.7.0)
- MongoDB.Bson (>= 3.4.3)
- MongoDB.Driver (>= 3.4.3)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 9.0.4)
- Polly (>= 8.6.3)
- Serilog.AspNetCore (>= 8.0.1)
- Serilog.Enrichers.Environment (>= 2.3.0)
- Serilog.Enrichers.Process (>= 2.0.2)
- Serilog.Enrichers.Thread (>= 3.1.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Swashbuckle.AspNetCore (>= 9.0.3)
- System.IdentityModel.Tokens.Jwt (>= 8.7.0)
- Yarp.ReverseProxy (>= 2.3.0)
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 |
|---|---|---|
| 2.2.0 | 0 | 4/23/2026 |
| 2.1.9 | 78 | 4/18/2026 |
| 2.1.8 | 82 | 4/18/2026 |
| 2.1.7 | 80 | 4/18/2026 |
| 2.1.6 | 89 | 4/7/2026 |
| 2.1.5 | 95 | 4/6/2026 |
| 2.1.4 | 87 | 4/6/2026 |
| 2.1.3 | 91 | 3/31/2026 |
| 2.1.2 | 85 | 3/31/2026 |
| 2.1.1 | 79 | 3/31/2026 |
| 2.1.0 | 86 | 3/31/2026 |
| 2.0.9 | 115 | 3/10/2026 |
| 2.0.8 | 108 | 3/10/2026 |
| 2.0.7 | 110 | 3/10/2026 |
| 2.0.6 | 115 | 3/10/2026 |
| 2.0.5 | 98 | 3/1/2026 |
| 2.0.4 | 89 | 3/1/2026 |
| 2.0.3 | 316 | 1/22/2026 |
| 2.0.2 | 197 | 1/21/2026 |
| 2.0.1 | 117 | 1/20/2026 |
Loading failed
Initial release of solidcode.work.infra with EF Core, MongoDB, Redis, RabbitMQ, and HTTP helpers.