Interface IViewModelGenericAttributeDefinition
- Namespace
- Blazing.Mvvm.ComponentModel
- Assembly
- Blazing.Mvvm.Base.dll
Defines the contract for generic attribute-based ViewModel registration, supporting service lifetime, type, and optional key for keyed registration.
public interface IViewModelGenericAttributeDefinitionProperties
Key
Gets or sets the key for keyed ViewModel registration, or null for non-keyed registration.
object? Key { get; set; }Property Value
Lifetime
Gets or sets the service lifetime for the ViewModel registration (e.g., Singleton, Scoped, Transient).
ServiceLifetime Lifetime { get; set; }Property Value
ViewModelType
Gets the type of the ViewModel to be registered.
Type ViewModelType { get; }