Commify.Titan.API.Event.Consumer
0.7.0
dotnet add package Commify.Titan.API.Event.Consumer --version 0.7.0
NuGet\Install-Package Commify.Titan.API.Event.Consumer -Version 0.7.0
<PackageReference Include="Commify.Titan.API.Event.Consumer" Version="0.7.0" />
<PackageVersion Include="Commify.Titan.API.Event.Consumer" Version="0.7.0" />
<PackageReference Include="Commify.Titan.API.Event.Consumer" />
paket add Commify.Titan.API.Event.Consumer --version 0.7.0
#r "nuget: Commify.Titan.API.Event.Consumer, 0.7.0"
#:package Commify.Titan.API.Event.Consumer@0.7.0
#addin nuget:?package=Commify.Titan.API.Event.Consumer&version=0.7.0
#tool nuget:?package=Commify.Titan.API.Event.Consumer&version=0.7.0
Commify.Titan.API.Event.Consumer
Self-contained NuGet package that enables adding event consumption functionality (via Wolverine & RabbitMQ) to any .NET 8 app.
Contact
Titan API Team
Configuration
The necessary configuration in appsettings is:
Event specific configs
"Event": {
"EventConsumer": {
"PreFetchCount": 100, //default 100
"ListenerCount": 10, //default 10
}
}
RabbitMQ
"TitanCommunication": {
"RabbitMQ": {
"ConnectionString" : "connection_string",
"Host": "host" //if connection string is not available
"Port": 5672 //if connection string is not available
"BasicCredentials": { //if set will use basic auth, if not, will fall back to AAD token authentication
"Username": "username",
"Password": "password"
}
}
}
Identity
"Identity": {
"WorkstreamToken": {
"KeyVaultUrl": "https://my-key-vault.net/",
"ManagedIdentity": "managedIdentityId"
},
"Mappings": [
{
"Key": "example-service",
"Value": "exampleServiceId"
}
]
}
and in environment variables: <samp>K8S_POD_NAME</samp> (Required for unique queue generation)
Usage
To enable it, this component offers an extension method over <samp>IServiceCollection</samp> called <samp>RegisterEventConsumerComponents<T></samp>, where T is a a class that implements <samp>IEventConsumer</samp>.
| 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
- Commify.Titan.API.CommonComponents (>= 0.9.0)
- Commify.Titan.TokenRetrieval.Nuget (>= 0.6.0)
- WolverineFx.RabbitMQ (>= 5.9.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.