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
servicesIServiceCollectionThe service collection the registrations are added to.
endpointObjectStorageEndpointWhere the endpoint is, which bucket it holds, and how a request to it is addressed and bounded.
reclamationBoundsContentObjectReclamationBoundsThe age below which the sweep leaves an object alone, and how much one run of it may examine.
configuredTrustAnchorConfiguredSecretThe 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, orreclamationBoundsis null.