Bnsights.MicroServices.SharedLibrary 1.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package Bnsights.MicroServices.SharedLibrary --version 1.0.6
                    
NuGet\Install-Package Bnsights.MicroServices.SharedLibrary -Version 1.0.6
                    
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="Bnsights.MicroServices.SharedLibrary" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bnsights.MicroServices.SharedLibrary" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="Bnsights.MicroServices.SharedLibrary" />
                    
Project file
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 Bnsights.MicroServices.SharedLibrary --version 1.0.6
                    
#r "nuget: Bnsights.MicroServices.SharedLibrary, 1.0.6"
                    
#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 Bnsights.MicroServices.SharedLibrary@1.0.6
                    
#: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=Bnsights.MicroServices.SharedLibrary&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=Bnsights.MicroServices.SharedLibrary&version=1.0.6
                    
Install as a Cake Tool

TDRA.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 on TDRA.Protos.dll (built from .proto files).
You must manually build TDRA.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.SharedLibrarythis 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 and RabbitMQConsumerService<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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 42 9/30/2025
1.0.42 153 9/22/2025
1.0.41 394 9/1/2025
1.0.40 312 8/28/2025
1.0.39 197 8/26/2025
1.0.38 183 8/26/2025
1.0.37 191 8/25/2025
1.0.36 132 8/18/2025
1.0.35 121 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 610 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