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 TypeRegistrar

Implements
ITypeRegistrar
Namespace: Coree.NETStandard
Assembly: Coree.NETStandard.dll
Syntax
public sealed class TypeRegistrar : ITypeRegistrar

Constructors

| Edit this page View Source

TypeRegistrar(IServiceCollection)

Declaration
public TypeRegistrar(IServiceCollection services)
Parameters
Type Name Description
IServiceCollection services

Methods

| Edit this page View Source

Build()

Builds the type resolver representing the registrations specified in the current instance.

Declaration
public ITypeResolver Build()
Returns
Type Description
ITypeResolver

A type resolver.

| Edit this page View Source

Register(Type, Type)

Registers the specified service.

Declaration
public void Register(Type service, Type implementation)
Parameters
Type Name Description
Type service

The service.

Type implementation

The implementation.

| Edit this page View Source

RegisterInstance(Type, object)

Registers the specified instance.

Declaration
public void RegisterInstance(Type service, object implementation)
Parameters
Type Name Description
Type service

The service.

object implementation

The implementation.

| Edit this page View Source

RegisterLazy(Type, Func<object>)

Registers the specified instance lazily.

Declaration
public void RegisterLazy(Type service, Func<object> func)
Parameters
Type Name Description
Type service

The service.

Func<object> func

Implements

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