Bnsights.MicroServices.SharedLibrary
1.0.18
See the version list below for details.
dotnet add package Bnsights.MicroServices.SharedLibrary --version 1.0.18
NuGet\Install-Package Bnsights.MicroServices.SharedLibrary -Version 1.0.18
<PackageReference Include="Bnsights.MicroServices.SharedLibrary" Version="1.0.18" />
<PackageVersion Include="Bnsights.MicroServices.SharedLibrary" Version="1.0.18" />
<PackageReference Include="Bnsights.MicroServices.SharedLibrary" />
paket add Bnsights.MicroServices.SharedLibrary --version 1.0.18
#r "nuget: Bnsights.MicroServices.SharedLibrary, 1.0.18"
#:package Bnsights.MicroServices.SharedLibrary@1.0.18
#addin nuget:?package=Bnsights.MicroServices.SharedLibrary&version=1.0.18
#tool nuget:?package=Bnsights.MicroServices.SharedLibrary&version=1.0.18
Bnsights.Microservices.SharedLibrary
Overview
This NuGet package contains a suite of shared libraries used across multiple microservices in the TDRA ecosystem, focused on standardizing and simplifying cross-cutting concerns such as:
- Database initialization and seeding
- RabbitMQ messaging
- Consul service discovery and configuration
- Hangfire job scheduling
- Common interfaces, entities, and extension methods
- Centralized logging and reusable utilities
🛑 Important Note:
This shared library depends onTDRA.Protos.dll
(built from.proto
files).
You must manually buildTDRA.Protos.csproj
before publishing or consuming this package, as it is not part of this solution and changes frequently.
Make sure it's built and present in../gRPC/TDRA.Protos/TDRA.Protos/bin/Debug/net8.0/TDRA.Protos.dll
.
Solution Structure
The main project to publish is:
TDRA.Microservices.Shared.SharedLibrary
— this project references all others and should be published as the NuGet package.
Referenced modules include:
TDRA.Microservices.Shared.Consul
TDRA.Microservices.Shared.RabbitMQ
TDRA.Microservices.Shared.HangfireJobs
TDRA.Microservices.Shared.Sql
TDRA.Microservices.Shared.UnifiedUserContext
Features
🗃️ Shared Database Initialization
IDatabaseInitializer.Initialize()
— runs EF Core migrations and optional seeding logic- Accepts
ILogger<T>
— supports centralized, microservice-level logging
🐇 RabbitMQ Integration
- Publisher/consumer setup using
IRabbitMQPublisher
andRabbitMQConsumerService<T>
- Configurable exchanges, queues, and routing keys
🧭 Consul Integration
- Service registration and dynamic configuration using
Winton.Extensions.Configuration.Consul
- Health check endpoint:
/health
⏱ Hangfire Job Scheduling
- Easily integrate recurring or background jobs using
JobsLogic
- Register Hangfire with:
builder.Services.AddHangfireServices(configuration["ConnectionStrings:ClientAppContext_DB"]); app.UseHangFire();
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 was computed. 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. |
-
net8.0
- Autofac (>= 8.3.0)
- Autofac.Extensions.DependencyInjection (>= 10.0.0)
- Consul (>= 1.7.14.7)
- EntityFramework (>= 6.5.1)
- Google.Protobuf (>= 3.31.1)
- Grpc.Net.Client (>= 2.71.0)
- Hangfire (>= 1.8.20)
- JetBrains.Annotations (>= 2024.3.0)
- Microsoft.AspNetCore.DataProtection.Abstractions (>= 8.0.4)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.3.0)
- Microsoft.AspNetCore.Routing (>= 2.3.0)
- Microsoft.Data.SqlClient (>= 6.0.2)
- Microsoft.EntityFrameworkCore (>= 8.0.5)
- Microsoft.EntityFrameworkCore.Proxies (>= 8.0.4)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.4)
- Microsoft.EntityFrameworkCore.SqlServer (>= 8.0.4)
- Microsoft.Extensions.Hosting (>= 8.0.1)
- RabbitMQ.Client (>= 6.4.0)
- Serilog (>= 4.2.0)
- System.CodeDom (>= 9.0.4)
- System.Linq (>= 4.3.0)
- Winton.Extensions.Configuration.Consul (>= 3.4.0)
- Z.EntityFramework.Plus.EFCore (>= 8.103.8.1)
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.0.43 | 41 | 9/30/2025 |
1.0.42 | 153 | 9/22/2025 |
1.0.41 | 383 | 9/1/2025 |
1.0.40 | 310 | 8/28/2025 |
1.0.39 | 196 | 8/26/2025 |
1.0.38 | 182 | 8/26/2025 |
1.0.37 | 188 | 8/25/2025 |
1.0.36 | 131 | 8/18/2025 |
1.0.35 | 120 | 8/18/2025 |
1.0.34 | 126 | 8/18/2025 |
1.0.33 | 127 | 8/18/2025 |
1.0.32 | 142 | 8/17/2025 |
1.0.31 | 152 | 8/13/2025 |
1.0.30 | 603 | 8/7/2025 |
1.0.29 | 200 | 8/7/2025 |
1.0.28 | 211 | 7/28/2025 |
1.0.27 | 189 | 7/26/2025 |
1.0.26 | 223 | 7/26/2025 |
1.0.25 | 237 | 7/26/2025 |
1.0.24 | 247 | 7/26/2025 |
1.0.23 | 443 | 7/21/2025 |
1.0.22 | 419 | 7/21/2025 |
1.0.21 | 248 | 7/20/2025 |
1.0.20 | 244 | 7/20/2025 |
1.0.19 | 242 | 7/20/2025 |
1.0.18 | 244 | 7/20/2025 |
1.0.17 | 156 | 7/17/2025 |
1.0.16 | 163 | 7/17/2025 |
1.0.15 | 146 | 7/17/2025 |
1.0.14 | 171 | 7/17/2025 |
1.0.13 | 166 | 7/16/2025 |
1.0.12 | 231 | 7/14/2025 |
1.0.11 | 148 | 7/13/2025 |
1.0.9 | 195 | 7/7/2025 |
1.0.8 | 187 | 6/23/2025 |
1.0.7 | 193 | 6/19/2025 |
1.0.6 | 163 | 6/19/2025 |
1.0.5 | 152 | 6/18/2025 |
1.0.4 | 151 | 6/18/2025 |
1.0.3 | 150 | 6/18/2025 |
1.0.2 | 159 | 6/18/2025 |
1.0.1 | 169 | 6/17/2025 |
1.0.0 | 148 | 6/17/2025 |