Table of Contents

Method Register

Namespace
Ploch.CommandLine.Spectre.DependencyInjection
Assembly
Ploch.CommandLine.Spectre.dll

Register(Type, Type)

Registers a service type with its corresponding implementation type as a transient service, so every resolution creates a new instance.

public void Register(Type service, Type implementation)

Parameters

service Type

The service type to register.

implementation Type

The implementation type that will be instantiated to provide the service.