ServiceRegistrationAttribute<TService1, TService2, TService3, TService4, TService5, TService6, TService7, TService8> Class
Definition
Attribute used to define the service registration of a given type
public sealed class ServiceRegistrationAttribute<TService1, TService2, TService3, TService4, TService5, TService6, TService7, TService8> : ServiceRegistrationAttributeType Parameters
TService1
TService2
TService3
TService4
TService5
TService6
TService7
TService8
Inheritance object → Attribute → ServiceRegistrationAttribute
Remarks
Constructor to specify the lifetime
Constructors
ServiceRegistrationAttribute(ServiceLifetime)
Attribute used to define the service registration of a given type
public ServiceRegistrationAttribute(ServiceLifetime lifetime = ServiceLifetime.Singleton)Parameters
lifetime ServiceLifetime
Remarks
Constructor to specify the lifetime

