2m.Shared.Infrastructure
1.0.2
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 2m.Shared.Infrastructure --version 1.0.2
NuGet\Install-Package 2m.Shared.Infrastructure -Version 1.0.2
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="2m.Shared.Infrastructure" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="2m.Shared.Infrastructure" Version="1.0.2" />
<PackageReference Include="2m.Shared.Infrastructure" />
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 2m.Shared.Infrastructure --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: 2m.Shared.Infrastructure, 1.0.2"
#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 2m.Shared.Infrastructure@1.0.2
#: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=2m.Shared.Infrastructure&version=1.0.2
#tool nuget:?package=2m.Shared.Infrastructure&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
2m.Shared.Infrastructure
A shared infrastructure package for microservices containing common utilities and services.
Features
- ✅ Health Checks (PostgreSQL, RabbitMQ)
- ✅ JWT Authentication
- ✅ Time Zone Handling
- ✅ Swagger Configuration
- ✅ Resilient HTTP Clients
- ✅ Distributed Caching (Redis ready)
Publish
Clean previous builds
dotnet clean
Restore dependencies
dotnet restore
Build in Release mode
dotnet pack --configuration Release
Create NuGet package
dotnet pack --configuration Release --output ./nupkgs
Installation
dotnet add package 2m.Shared.Infrastructure
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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.
-
net9.0
- AspNetCore.HealthChecks.Npgsql (>= 9.0.0)
- AspNetCore.HealthChecks.Rabbitmq (>= 9.0.0)
- AspNetCore.HealthChecks.UI.Client (>= 9.0.0)
- AutoMapper (>= 14.0.0)
- MassTransit (>= 8.4.1)
- MassTransit.RabbitMQ (>= 8.4.1)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 9.0.6)
- Microsoft.EntityFrameworkCore (>= 9.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.6)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 9.0.6)
- Microsoft.Extensions.Http (>= 9.0.6)
- RabbitMQ.Client (>= 7.1.2)
- Swashbuckle.AspNetCore (>= 6.5.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 |
---|---|---|
1.2.1 | 140 | 6/18/2025 |
1.2.0 | 133 | 6/17/2025 |
1.1.9 | 139 | 6/17/2025 |
1.1.8 | 140 | 6/17/2025 |
1.1.6 | 139 | 6/17/2025 |
1.1.5 | 138 | 6/16/2025 |
1.1.4 | 135 | 6/16/2025 |
1.1.3 | 133 | 6/16/2025 |
1.1.2 | 157 | 6/16/2025 |
1.1.1 | 137 | 6/15/2025 |
1.1.0 | 108 | 6/15/2025 |
1.0.9 | 112 | 6/15/2025 |
1.0.8 | 105 | 6/15/2025 |
1.0.7 | 103 | 6/15/2025 |
1.0.6 | 114 | 6/15/2025 |
1.0.5 | 121 | 6/15/2025 |
1.0.4 | 132 | 6/15/2025 |
1.0.3 | 124 | 6/15/2025 |
1.0.2 | 123 | 6/15/2025 |
1.0.1 | 125 | 6/15/2025 |
1.0.0 | 128 | 6/15/2025 |