Credit360.AuditLogging.Contracts
1.0.0
dotnet add package Credit360.AuditLogging.Contracts --version 1.0.0
NuGet\Install-Package Credit360.AuditLogging.Contracts -Version 1.0.0
<PackageReference Include="Credit360.AuditLogging.Contracts" Version="1.0.0" />
<PackageVersion Include="Credit360.AuditLogging.Contracts" Version="1.0.0" />
<PackageReference Include="Credit360.AuditLogging.Contracts" />
paket add Credit360.AuditLogging.Contracts --version 1.0.0
#r "nuget: Credit360.AuditLogging.Contracts, 1.0.0"
#:package Credit360.AuditLogging.Contracts@1.0.0
#addin nuget:?package=Credit360.AuditLogging.Contracts&version=1.0.0
#tool nuget:?package=Credit360.AuditLogging.Contracts&version=1.0.0
Credit360.AuditLogging.Libraries
Reusable NuGet packages for publishing audit events from Credit360 microservices to the Audit & Logging backend.
| Package | Purpose |
|---|---|
Credit360.AuditLogging.Contracts |
Event DTOs, Kafka topic names, envelope factory, shared .proto files |
Credit360.AuditLogging.Producer |
Resilient publisher: Kafka primary, gRPC + Coravel fallback when Kafka is unavailable |
Install
From a private feed or local folder after packing:
dotnet add package Credit360.AuditLogging.Producer
Local development (after ./pack.ps1):
dotnet nuget add source ./artifacts --name Credit360Local
dotnet add package Credit360.AuditLogging.Producer --source Credit360Local
Configuration
Add to appsettings.json:
{
"AuditLoggingProducer": {
"Kafka": {
"Enabled": true,
"BootstrapServers": "localhost:9092",
"AuditLogCreatedTopic": "audit-log-created",
"AuditLogDefinitionUpdatedTopic": "audit-log-definition-updated"
},
"Grpc": {
"Enabled": true,
"Address": "http://localhost:9080"
},
"Fallback": {
"UseGrpcWhenKafkaFails": true,
"QueueGrpcFallbackWithCoravel": true,
"CoravelMaxRetries": 5
}
}
}
Usage
using Credit360.AuditLogging.Contracts.Events;
using Credit360.AuditLogging.Producer.Abstractions;
using Credit360.AuditLogging.Producer.Extensions;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddAuditLoggingProducer(builder.Configuration);
var app = builder.Build();
app.Services.ConfigureQueue(); // required for Coravel gRPC fallback
// Inject IAuditEventPublisher where audit events are emitted
await auditPublisher.PublishAuditLogCreatedAsync(new AuditLogEventData
{
OperationCode = "USER_LOGIN",
Description = "User signed in",
UserName = "jane.doe",
ClientIp = "10.0.0.1"
});
Build and pack
dotnet build Credit360.AuditLogging.sln
./pack.ps1
Packages are emitted to ./artifacts.
Standalone Git repository
This folder is intended to live in its own repository (Credit360.AuditLogging.Libraries). To split from a monorepo:
- Copy or move this directory to a new repo root.
- Run
git initand push to your remote. - Update consuming services to reference NuGet packages instead of project references.
The Audit & Logging service currently references these projects via relative paths during local development.
Kafka topics and gRPC contract
- Topics:
audit-log-created,audit-log-definition-updated - Envelope:
KafkaEventWrapper<T>withEventType,EventId,Timestamp,Data - gRPC service:
audit_ingest.AuditIngestService(proto files underCredit360.AuditLogging.Contracts/Protos/)
| 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
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Credit360.AuditLogging.Contracts:
| Package | Downloads |
|---|---|
|
Credit360.AuditLogging.Producer
Resilient audit event producer for Credit360 services (Kafka primary, gRPC + Coravel fallback). |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 144 | 7/1/2026 |