Interface IBlazorViewRegistrator
Represents a service for registering Blazor view types with associated content types and optional keys. By using this service, developers can dynamically register views, making Blazor applications more extensible.
Namespace: PoeShared.Blazor.Services
Assembly: PoeShared.Blazor.dll
Syntax
public interface IBlazorViewRegistrator
Examples
// Registering a view:
var registrator = someServiceProvider.GetService<IBlazorViewRegistrator>();
registrator.RegisterViewType(typeof(MyCustomView));
Methods
Name | Description |
---|---|
RegisterViewType(Type, object) | Registers the provided Blazor view type with an optional associated key. Once a view type is registered, it can be looked up using its content type and the specified key. |