Interface IApprovalTypeRegistry
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Registry for different types of approvals.
Namespace: EPiServer.Approvals
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public interface IApprovalTypeRegistry
Methods
GetFactory(String)
Returns a approval type factory registered to an approval type.
Declaration
IApprovalTypeFactory GetFactory(string approvalType)
Parameters
Type | Name | Description |
---|---|---|
System.String | approvalType | The approval type |
Returns
Type | Description |
---|---|
IApprovalTypeFactory | The registered factory |
GetFactory(Type)
Returns a approval type factory registered to a class.
Declaration
IApprovalTypeFactory GetFactory(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | A class inherited from Approval or ApprovalDefinition |
Returns
Type | Description |
---|---|
IApprovalTypeFactory | The registered factory |
Register<TApprovalDefinition, TApproval>(IApprovalTypeFactory)
Register a factory to an approval and an approval definition
Declaration
void Register<TApprovalDefinition, TApproval>(IApprovalTypeFactory factory)
where TApprovalDefinition : ApprovalDefinition where TApproval : Approval
Parameters
Type | Name | Description |
---|---|---|
IApprovalTypeFactory | factory | The approval type factory to register |
Type Parameters
Name | Description |
---|---|
TApprovalDefinition | A class inherited from ApprovalDefinition |
TApproval | A class inherited from Approval |