SeliseBlocks.Genesis.Framework.Worker
10.0.2.2
dotnet add package SeliseBlocks.Genesis.Framework.Worker --version 10.0.2.2
NuGet\Install-Package SeliseBlocks.Genesis.Framework.Worker -Version 10.0.2.2
<PackageReference Include="SeliseBlocks.Genesis.Framework.Worker" Version="10.0.2.2" />
<PackageVersion Include="SeliseBlocks.Genesis.Framework.Worker" Version="10.0.2.2" />
<PackageReference Include="SeliseBlocks.Genesis.Framework.Worker" />
paket add SeliseBlocks.Genesis.Framework.Worker --version 10.0.2.2
#r "nuget: SeliseBlocks.Genesis.Framework.Worker, 10.0.2.2"
#:package SeliseBlocks.Genesis.Framework.Worker@10.0.2.2
#addin nuget:?package=SeliseBlocks.Genesis.Framework.Worker&version=10.0.2.2
#tool nuget:?package=SeliseBlocks.Genesis.Framework.Worker&version=10.0.2.2
SeliseBlocks.Genesis.Framework.Worker
Background worker service using RabbitMQ and MassTransit for message-based processing in the Genesis framework.
Project Name & Purpose
SeliseBlocks.Genesis.Framework.Worker provides the infrastructure for background worker services in the Genesis platform. It implements the Saga pattern with MassTransit and RabbitMQ for message-based processing, supporting long-running workflows, event-driven choreography, and distributed saga orchestration. Workers consume messages from queues and execute business logic asynchronously.
Tech Stack
- .NET 10.0 (net10.0)
- Key Libraries:
MassTransit.RabbitMQ(8.2.5) - Saga orchestration and message busRabbitMQ.Client(6.8.1) - RabbitMQ clientMicrosoft.Extensions.Hosting(10.0.0) - Background service hostingSystem.IdentityModel.Tokens.Jwt(8.0.0) - JWT handlinglog4net(3.3.2) - LoggingSharpCompress(0.50.4) /Snappier(1.3.1) - Compression
Dependencies
Internal Project References
| Project | Version | Purpose |
|---|---|---|
| SeliseBlocks.Genesis.Framework.Logger.File | 10.0.0.2 | File logging |
| SeliseBlocks.Genesis.Framework.RedisClient | 10.0.0.2 | Redis caching |
| SeliseBlocks.Genesis.Framework.Repositories | 10.0.0.1 | Data access |
| SeliseBlocks.Genesis.Framework.ServiceClient | 10.0.0.1 | Service communication |
NuGet Packages
| Package | Version | Purpose |
|---|---|---|
| MassTransit.RabbitMQ | 8.2.5 | Saga/message bus |
| RabbitMQ.Client | 6.8.1 | RabbitMQ client |
| Microsoft.Extensions.Hosting | 10.0.0 | Hosting |
| System.IdentityModel.Tokens.Jwt | 8.0.0 | JWT |
| log4net | 3.3.2 | Logging |
| SharpCompress | 0.50.4 | Compression |
| Snappier | 1.3.1 | Compression |
Structure
Abstractions/
- AmpQMessage.cs
- ConsumerSubscription.cs
- IAmpQMessageConsumer.cs
- IMessageBroker.cs
- Subscription.cs
Application/
- Application.cs
- ApplicationBuilder.cs
- IApplicationBuilder.cs
- RequestDelegate.cs
Context/
- ContextAccesor.cs
- ContextFactory.cs
- DefaultContext.cs
- DefaultRequest.cs
- DefaultResponse.cs
- FeatureCollection.cs
- IContextAccessor.cs
- IContextFactory.cs
- IFeatureCollection.cs
- IRequestFeature.cs
- IResponseFeature.cs
- ProcessingContext.cs
- Request.cs
- Response.cs
Infrastructure/
- IStartup.cs
- MiddlewareBase.cs
- ServiceCollectionExtensions.cs
- UseMiddlewareExtensions.cs
- ValueStopwatch.cs
RabbitMq/
- SecurityContextProvider.cs
- Startup.cs
- HostBuilderExtensions.cs
- AppSettingsProvider.cs
- RabbitMqHostBuilder.cs
- RabbitMqHostBuilderOptions.cs
- RabbitMqHostingExtensions.cs
- RabbitMqMessageConsumer.cs
- RabbitMqMessageConsumerHostedService.cs
- RabbitMq.cs
- AmpqMessageConsumerOptions.cs
- AmpqMessageContext.cs
Saga/
(root level files)
- ISagaExecutionService.cs
- ISagaFactory.cs
- ISagaRepository.cs
- ITaskScheduler.cs
Internal/
- Command.cs
- DefaultSagaExecutionService.cs
- DefaultSagaFactory.cs
- DefaultSagaRepository.cs
- EventSagaDataPropertyMap.cs
- EventSagaDataPropertyMapExtensions.cs
- ExternalTaskScheduler.cs
- ScheduleMessage.cs
Public/
- SagaBase.cs
- SagaBaseT.cs
- SagaContext.cs
- SagaPropertyMapper.cs
- ISagaData.cs
Key Components
Saga Pattern
SagaBase/SagaBase<T>- Base classes for saga implementationsISagaData- Interface for saga state dataSagaContext- Execution context for sagasSagaPropertyMapper- Maps events to saga state
RabbitMQ Integration
RabbitMq- RabbitMQ connection managementRabbitMqMessageConsumer- Consumer implementationRabbitMqHostingExtensions- DI registration
Application Pipeline
ApplicationBuilder- Middleware pipeline builderMiddlewareBase- Base class for middleware
Context
ProcessingContext- Request processing contextContextFactory- Creates execution contexts
RabbitMQ Consumer Self-Healing and Teams Notifications
If the broker closes a consumer's channel or cancels the consumer while the connection stays open, the consumer is re-subscribed on a new channel automatically. A health check runs every minute (heartbeat). It re-subscribes a consumer that is connected but stalled (messages are waiting but none was received). Acknowledgements are serialised per channel and skipped on a closed channel.
To post every disruption, stall and recovery to Microsoft Teams, add a Teams Workflows webhook to the service's appsettings (optional):
"RabbitMqHealth": {
"TeamsWebhookUrl": "https://...logic.azure.com/workflows/...",
"HealthCheckInterval": "00:01:00",
"StallThreshold": "00:05:00"
}
Details, Teams setup, flowchart and log reference: docs/rabbitmq-consumer-health.md.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Microsoft.Extensions.Hosting (>= 10.0.0)
- RabbitMQ.Client (>= 6.8.1)
- SeliseBlocks.Genesis.Framework.Logger.File (>= 10.0.2.2)
- SeliseBlocks.Genesis.Framework.PDS.Entity (>= 10.0.2.2)
- SeliseBlocks.Genesis.Framework.RedisClient (>= 10.0.2.2)
- SeliseBlocks.Genesis.Framework.Repositories (>= 10.0.2.2)
- SeliseBlocks.Genesis.Framework.ServiceClient (>= 10.0.2.2)
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 |
|---|---|---|
| 10.0.2.2 | 58 | 11/26/2026 |
| 10.0.2.1 | 226 | 11/24/2026 |
| 10.0.0.8-rc1 | 94 | 11/23/2026 |
| 10.0.0.7 | 415 | 11/5/2026 |
| 10.0.0.6 | 2,871 | 10/11/2026 |
| 10.0.0.5 | 850 | 10/5/2026 |
| 10.0.0.4 | 9,024 | 10/1/2026 |
| 10.0.0.3 | 5,296 | 9/6/2026 |
| 10.0.0.3-rc1 | 938 | 8/29/2026 |
| 10.0.0.2 | 9,291 | 8/16/2026 |
| 10.0.0.1 | 218 | 8/16/2026 |
| 8.0.1.9 | 691 | 6/30/2026 |
| 8.0.1.8 | 182 | 4/22/2026 |
| 8.0.1.7 | 172 | 4/22/2026 |
| 8.0.1.6 | 160 | 4/20/2026 |
| 8.0.1.5 | 163 | 4/20/2026 |
| 8.0.0.6-rc1 | 160 | 7/26/2026 |
| 6.0.5.2 | 393 | 8/19/2026 |
| 6.0.5.1 | 246 | 7/6/2026 |
| 6.0.3.7 | 235 | 3/18/2026 |