Registers a component in the component catalog.
Declaring type: ComponentCatalog
Namespace: Zyan.Communication
Assembly: Zyan.Communication
Collapse/Expand Syntax
C#
public void RegisterComponent<I> (
        string uniqueName,
        Func<object> factoryMethod,
        ActivationType activationType,
        Action<object> cleanUpHandler
) 
Type Parameters
I
Interface type of the component
Parameters
uniqueName
Unique component name
factoryMethod
Delegate of factory method for external instance creation
activationType
Activation type (SingleCall/Singleton)
cleanUpHandler
Delegate for external clean up method