Table of Contents

Class ServiceCollectionExtensions

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
Sigstore.dll

DI registration helpers for Sigstore .NET.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddSigstore(IServiceCollection)

Registers default Sigstore verification services.

public static IServiceCollection AddSigstore(this IServiceCollection services)

Parameters

services IServiceCollection

Service collection.

Returns

IServiceCollection

The same collection.

AddSigstoreSigning(IServiceCollection, Action<SigstoreSigningOptions>?)

Registers Sigstore signing services (Signer, SigningPipeline, FulcioClient, RekorClient, AmbientTokenProvider). Also calls AddSigstore(IServiceCollection) so callers only need one registration call.

public static IServiceCollection AddSigstoreSigning(this IServiceCollection services, Action<SigstoreSigningOptions>? configure = null)

Parameters

services IServiceCollection

Service collection.

configure Action<SigstoreSigningOptions>

Optional callback to override signing options.

Returns

IServiceCollection

The same collection.