Skip to content

ServiceRegistrationAttribute<TService> Constructors

ClassConstructors1 member
Attribute used to define the service registration of a given type
Attribute used to define the service registration of a given type
public sealed class ServiceRegistrationAttribute<TService>
{
public ServiceRegistrationAttribute(
ServiceLifetime lifetime)
{
// ...
}
}
lifetimeServiceLifetime
Constructor to specify the lifetime