Table of Contents

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 IViewModelGenericAttributeDefinition

Properties

Key

Gets or sets the key for keyed ViewModel registration, or null for non-keyed registration.

object? Key { get; set; }

Property Value

object?

Lifetime

Gets or sets the service lifetime for the ViewModel registration (e.g., Singleton, Scoped, Transient).

ServiceLifetime Lifetime { get; set; }

Property Value

ServiceLifetime

ViewModelType

Gets the type of the ViewModel to be registered.

Type ViewModelType { get; }

Property Value

Type