Show / Hide Table of Contents

Class TypeRegistrationItem<TService, TImplementation>

Describes a type mapping that should be registered with .NET Core dependency injection.

Inheritance
object
TypeRegistrationItem<TService, TImplementation>
Implements
ITypeRegistrationItem
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.Common
Assembly: Benday.Common.dll
Syntax
public class TypeRegistrationItem<TService, TImplementation> : ITypeRegistrationItem where TService : class where TImplementation : class, TService
Type Parameters
Name Description
TService

Service type or interface type

TImplementation

Implementation type

Constructors

| Edit this page View Source

TypeRegistrationItem(ServiceLifetime)

Constructor

Declaration
public TypeRegistrationItem(ServiceLifetime lifetime = ServiceLifetime.Transient)
Parameters
Type Name Description
ServiceLifetime lifetime

What is the instancing lifetime for this type registration?

Properties

| Edit this page View Source

ImplementationType

Implementation type

Declaration
public Type ImplementationType { get; }
Property Value
Type Description
Type
| Edit this page View Source

Lifetime

Instancing lifetime for this type mapping

Declaration
public ServiceLifetime Lifetime { get; set; }
Property Value
Type Description
ServiceLifetime
| Edit this page View Source

ServiceType

Service or interface type

Declaration
public Type ServiceType { get; }
Property Value
Type Description
Type

Implements

ITypeRegistrationItem
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com