Blazor IComponentTypeSwitchBroker
In Blazor one can inject unique components as described here EXT_ComponentsBlazor
But you can also replace All or Some components based on a Switch-logic you define yourself
public interface IComponentTypeSwitchBroker { Type SwitchThis(IMDCompHolder compholder,Type theType); }
The assembly and type that implements this interface is then given in the Documentation:SysMDrivenMiscSettingsSingleton property GlobalBlazorClientComponentOverride, in the same format as you do for EXT_ComponentsBlazor , namely :
AssemblyNameWithoutExtension;AdditionalAssemblyIfNeededWithoutExtension;AsManyAssembliesAsNeededWithoutExtension;TheTypeImplementing_IComponentTypeSwitchBroker
This page was edited 94 days ago on 09/19/2024. What links here