TCIS.EventBus.PostgreSql 1.0.0-rc.11

This is a prerelease version of TCIS.EventBus.PostgreSql.
dotnet add package TCIS.EventBus.PostgreSql --version 1.0.0-rc.11
                    
NuGet\Install-Package TCIS.EventBus.PostgreSql -Version 1.0.0-rc.11
                    
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="TCIS.EventBus.PostgreSql" Version="1.0.0-rc.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TCIS.EventBus.PostgreSql" Version="1.0.0-rc.11" />
                    
Directory.Packages.props
<PackageReference Include="TCIS.EventBus.PostgreSql" />
                    
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 TCIS.EventBus.PostgreSql --version 1.0.0-rc.11
                    
#r "nuget: TCIS.EventBus.PostgreSql, 1.0.0-rc.11"
                    
#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 TCIS.EventBus.PostgreSql@1.0.0-rc.11
                    
#: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=TCIS.EventBus.PostgreSql&version=1.0.0-rc.11&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TCIS.EventBus.PostgreSql&version=1.0.0-rc.11&prerelease
                    
Install as a Cake Tool

TCIS.EventBus.PostgreSql

The TCIS.EventBus.PostgreSql library is a Storage Provider utilizing PostgreSQL for the Outbox pattern in TCIS.EventBus.

🌟 Features

  • Supports Outbox/Inbox message storage in PostgreSQL.
  • Ensures a robust Transactional Outbox Pattern.
  • Native integration via Entity Framework Core (using shared Transactions).

📦 Installation

dotnet add package TCIS.EventBus.PostgreSql

🚀 Setup & Usage

1. Registration in Program.cs

Method 1: Using Npgsql Connection String

using TCIS.EventBus;
using TCIS.EventBus.PostgreSql;

builder.Services.AddTEventBus(options =>
{
    options.UsePostgreSql("Host=...;Database=...;Username=...;Password=...");
    // ... config transport
});

Method 2 (Recommended): Integration with Entity Framework Core

using TCIS.EventBus;
using TCIS.EventBus.PostgreSql;

builder.Services.AddTEventBus(options =>
{
    // Share DbContext and Transaction with EF Core (Npgsql)
    options.UseEntityFramework<MyApplicationDbContext>();
});

2. Coordinated Transactions

using var transaction = await _dbContext.Database.BeginTransactionAsync(_eventPublisher, autoCommit: false);

// 1. Save changes
_dbContext.Customers.Add(newCustomer);
await _dbContext.SaveChangesAsync();

// 2. Publish (stored in CAP Outbox schema)
await _eventPublisher.PublishAsync("customer.created", newCustomer);

// 3. Commit all changes
await transaction.CommitAsync();
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.0-rc.11 35 7/28/2026
1.0.0-rc.10 45 7/24/2026
1.0.0-rc.9 45 7/21/2026
1.0.0-rc.8 43 7/21/2026
1.0.0-rc.7 43 7/17/2026
1.0.0-rc.6 58 7/7/2026
1.0.0-rc.5 56 7/7/2026
1.0.0-rc.4 65 6/24/2026
1.0.0-rc.2 71 5/12/2026
1.0.0-rc.1 66 5/12/2026