Interface IBlazorViewRepository
Represents a repository for resolving Blazor view types based on content types and optional keys. This interface is designed to facilitate dynamic view lookup, enhancing the modularity of a Blazor application.
Namespace: PoeShared.Blazor.Services
Assembly: PoeShared.Blazor.dll
Syntax
public interface IBlazorViewRepository
Examples
// Resolving a view by its content type:
var repo = someServiceProvider.GetService<IBlazorViewRepository>();
var viewType = repo.ResolveViewType(typeof(MyContentModel));
Properties
Name | Description |
---|---|
WhenChanged |
Methods
Name | Description |
---|---|
ResolveViewType(Type, object) | Resolves and retrieves the registered Blazor view type for a given content type and an optional key. |