Interface IModelExtensionCommandHandlerProvider
- Namespace
- Dynamicweb.CoreUI.Data
- Assembly
- Dynamicweb.CoreUI.dll
Resolves the IModelExtensionCommandHandler<TModel, TExtensionModel> implementations registered for a model.
public interface IModelExtensionCommandHandlerProvider
Remarks
Public - unlike ICommandValidatorProvider, this is driven directly by the API layer (outside this
assembly), which decides when posted data means an extension applies and feeds the command log accordingly.
Methods
GetRegistrations(Type)
Returns every model extension command handler registered for modelType, in a stable
order. An empty result is not an error - most models have no extensions. Registered against the model, not
any one command, so the same registrations apply no matter which command carrying that model is executing.
IReadOnlyList<ModelExtensionHandlerRegistration> GetRegistrations(Type modelType)
Parameters
modelTypeType