Coree.NETStandard
  • Docs
  • API
Show / Hide Table of Contents
  • Coree.NETStandard
    • TypeRegistrar
    • TypeResolver
  • Coree.NETStandard.Classes
    • ThreadSafeCollection<T>
  • Coree.NETStandard.Extensions
    • SerilogExtensions
    • ServiceProviderExtensions
  • Coree.NETStandard.Extensions.Enumerable
    • EnumerableExtension
  • Coree.NETStandard.Extensions.ServiceCollection
    • ServiceCollectionExtensions
  • Coree.NETStandard.HostedService
    • HostedServiceSampleImplementation
    • HostedServiceSampleImplementationOptions
  • Coree.NETStandard.Logging
    • SourceContextShortEnricher
  • Coree.NETStandard.Options
    • HostedServicesCollectionOptionsProvider<T>
    • IHostedServicesCollectionOptionsProvider<T>
  • Coree.NETStandard.Services
    • FileService
    • IFileService
    • IRuntimeInsights
    • RuntimeInsightsService

Class TypeResolver

Implements
ITypeResolver
IDisposable
Namespace: Coree.NETStandard
Assembly: Coree.NETStandard.dll
Syntax
public sealed class TypeResolver : ITypeResolver, IDisposable

Constructors

| Edit this page View Source

TypeResolver(IServiceProvider)

Declaration
public TypeResolver(IServiceProvider provider)
Parameters
Type Name Description
IServiceProvider provider

Methods

| Edit this page View Source

Dispose()

Declaration
public void Dispose()
| Edit this page View Source

Resolve(Type?)

Resolves an instance of the specified type.

Declaration
public object? Resolve(Type? type)
Parameters
Type Name Description
Type type

The type to resolve.

Returns
Type Description
object

An instance of the specified type, or null if no registration for the specified type exists.

Implements

Spectre.Console.Cli.ITypeResolver
IDisposable
  • Edit this page
  • View Source
In this article
Back to top