Class ProtectedDecisionServiceProviderFactory

Namespace
Cratis.Arc.DependencyInjection
Assembly
Cratis.Arc.Core.dll

Builds a Microsoft dependency injection provider whose native child scopes can be attested by Arc.

public sealed class ProtectedDecisionServiceProviderFactory : IServiceProviderFactory<IServiceCollection>
Inheritance
ProtectedDecisionServiceProviderFactory
Implements
Inherited Members
Extension Methods

Remarks

Attestation identifies a provider and its final registrations; it does not certify application code. The root provider itself is not eligible for protected decision scope attestation. Host environment defaults and callbacks configured through UseDefaultServiceProvider do not supply these options.

Constructors

ProtectedDecisionServiceProviderFactory(ServiceProviderOptions?)

Builds a Microsoft dependency injection provider whose native child scopes can be attested by Arc.

public ProtectedDecisionServiceProviderFactory(ServiceProviderOptions? options = null)

Parameters

options ServiceProviderOptions

The provider options, copied when the factory is created. If omitted, both validation options are false.

Remarks

Attestation identifies a provider and its final registrations; it does not certify application code. The root provider itself is not eligible for protected decision scope attestation. Host environment defaults and callbacks configured through UseDefaultServiceProvider do not supply these options.

Methods

CreateBuilder(IServiceCollection)

Creates a container builder from an IServiceCollection.

public IServiceCollection CreateBuilder(IServiceCollection services)

Parameters

services IServiceCollection

The collection of services.

Returns

IServiceCollection

A container builder that can be used to create an IServiceProvider.

CreateServiceProvider(IServiceCollection)

Creates an IServiceProvider from the container builder.

public IServiceProvider CreateServiceProvider(IServiceCollection containerBuilder)

Parameters

containerBuilder IServiceCollection

The container builder.

Returns

IServiceProvider

An IServiceProvider instance.