Class DependencyInjectionTypeResolver
- Namespace
- Ploch.CommandLine.Spectre.DependencyInjection
- Assembly
- Ploch.CommandLine.Spectre.dll
Provides a type resolver implementation that resolves types using dependency injection through an IHost instance.
public sealed class DependencyInjectionTypeResolver : ITypeResolver, IDisposable
- Inheritance
-
DependencyInjectionTypeResolver
- Implements
-
ITypeResolver
- Inherited Members
Constructors
- DependencyInjectionTypeResolver(IHost)
Provides a type resolver implementation that resolves types using dependency injection through an IHost instance.
Methods
- Dispose()
Disposes the underlying host provider.
- Resolve(Type?)
Resolves a service of the specified type from the service provider.