Table of Contents

Interface IModelHandlerFactory

Namespace
Htmx.Components.Services
Assembly
Htmx.Components.dll

Factory interface for creating model handlers. Inject this into your controllers rather than IModelRegistry in order to avoid DI recursion issues.

public interface IModelHandlerFactory
Extension Methods

Methods

Get(string, ModelUI)

Creates a model handler for the specified type identifier and UI configuration.

Task<ModelHandler> Get(string typeId, ModelUI modelUI)

Parameters

typeId string

The unique identifier for the model type.

modelUI ModelUI

The UI configuration for the model.

Returns

Task<ModelHandler>

A task that represents the asynchronous operation. The task result contains the model handler.