RegistrationLifetimeAttribute Class
Definition
Defines the lifetime that should be used service registrations created using the ISpecularProvider
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface)]public class RegistrationLifetimeAttribute : AttributeInheritance object → Attribute
Remarks
Constructor to specify the lifetime
Constructors
RegistrationLifetimeAttribute(ServiceLifetime)
Defines the lifetime that should be used service registrations created using the ISpecularProvider
public RegistrationLifetimeAttribute(ServiceLifetime lifetime)Parameters
lifetime ServiceLifetime
Remarks
Constructor to specify the lifetime
Properties
Lifetime
The lifetime
public ServiceLifetime Lifetime { get; }
