< Summary - AsyncResponse (Release / net8.0+net10.0 / unit+integration)

Information
Class: AsyncResponse.Transports.MongoDB.MongoDbMessageDispatcher
Assembly: AsyncResponse.Transports.MongoDB
File(s): /home/runner/work/AsyncResponse/AsyncResponse/src/Transports/AsyncResponse.Transports.MongoDB/MongoDbMessageDispatcher.cs
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 32
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/AsyncResponse/AsyncResponse/src/Transports/AsyncResponse.Transports.MongoDB/MongoDbMessageDispatcher.cs

#LineLine coverage
 1global using DbAckMode = AsyncResponse.Transports.MongoDB.MongoDbAckMode;
 2global using DbBackgroundFailureContext = AsyncResponse.Transports.MongoDB.MongoDbBackgroundFailureContext;
 3global using DbSubscriberOptions = AsyncResponse.Transports.MongoDB.MongoDbSubscriberOptions;
 4global using DbSubscriberRole = AsyncResponse.Transports.MongoDB.MongoDbSubscriberRole;
 5global using DbTransportDelivery = AsyncResponse.Transports.MongoDB.MongoDbTransportDelivery;
 6global using DbTransportOptions = AsyncResponse.Transports.MongoDB.MongoDbAsyncResponseTransportOptions;
 7global using DbTransportOptionsValidator = AsyncResponse.Transports.MongoDB.MongoDbTransportOptionsValidator;
 8using Microsoft.Extensions.Logging;
 9
 10namespace AsyncResponse.Transports.MongoDB;
 11
 12/// <summary>
 13/// Applies acknowledgement, redelivery, and dead-letter policy to MongoDB transport deliveries.
 14/// All machinery lives in <see cref="DbMessageDispatcherBase"/> (shared source, compiled into this
 15/// assembly); the global using aliases above bind the provider seam types, and this derivation
 16/// supplies only the display strings rendered into logs and telemetry.
 17/// </summary>
 18internal sealed class MongoDbMessageDispatcher(
 19    Func<MongoDbTransportDelivery, CancellationToken, Task> handler,
 20    MongoDbAsyncResponseTransportOptions options,
 21    MongoDbSubscriberOptions subscriberOptions,
 22    ILogger logger,
 23    MongoDbSubscriberRole role)
 324    : DbMessageDispatcherBase(
 325        handler,
 326        options,
 327        subscriberOptions,
 328        logger,
 329        role,
 330        providerName: "MongoDB",
 331        unitNoun: "document",
 332        telemetryName: "mongodb");