Table of Contents

Method AddObjectStorage

Namespace
MailFathom.Infrastructure.ObjectStorage
Assembly
MailFathom.Infrastructure.dll

AddObjectStorage(IServiceCollection, ObjectStorageEndpoint, ContentObjectReclamationBounds, ConfiguredSecret?)

Registers the object-storage transport, its client, its telemetry, its readiness probe, the content store that writes through it, and the sweep that reclaims what nothing points at.

public static IServiceCollection AddObjectStorage(this IServiceCollection services, ObjectStorageEndpoint endpoint, ContentObjectReclamationBounds reclamationBounds, ConfiguredSecret? configuredTrustAnchor)

Parameters

services IServiceCollection

The service collection the registrations are added to.

endpoint ObjectStorageEndpoint

Where the endpoint is, which bucket it holds, and how a request to it is addressed and bounded.

reclamationBounds ContentObjectReclamationBounds

The age below which the sweep leaves an object alone, and how much one run of it may examine.

configuredTrustAnchor ConfiguredSecret

The block referencing the private authority that signed the endpoint's certificate, or null for one the platform already trusts.

Returns

IServiceCollection

The same service collection, so registration reads as one expression.

Exceptions

ArgumentNullException

Thrown when services, endpoint, or reclamationBounds is null.