Table of Contents

Class CheckpointServiceCollectionExtensions

Namespace
Trellis.EntityFrameworkCore
Assembly
Trellis.EntityFrameworkCore.Inbox.dll

Registers the pull-consumer checkpoint store for a DbContext.

public static class CheckpointServiceCollectionExtensions
Inheritance
CheckpointServiceCollectionExtensions
Inherited Members

Methods

AddTrellisConsumerCheckpointStore<TContext>(IServiceCollection)

Registers the EF Core Trellis.IConsumerCheckpointStore backed by TContext. Pair this with AddTrellisConsumerCheckpoints(ModelBuilder) in the context's OnModelCreating. The store is a durable resume cursor — a performance optimization; once-effective processing stays with the inbox anti-join (FilterUnprocessedAsync(string, IReadOnlyCollection<Guid>, CancellationToken)) and dedup row, not the checkpoint.

public static IServiceCollection AddTrellisConsumerCheckpointStore<TContext>(this IServiceCollection services) where TContext : DbContext

Parameters

services IServiceCollection

The service collection.

Returns

IServiceCollection

The same service collection for chaining.

Type Parameters

TContext

The consumer's DbContext that owns the checkpoint table.