/// <summary>
 /// Registers a component in the component catalog.
 /// </summary>
 /// <typeparam name="I">Interface type of the component</typeparam>
 /// <typeparam name="T">Implementation type of the component</typeparam>
 /// <param name="uniqueName">Unique component name</param>
 /// <param name="activationType">Activation type (SingleCall/Singleton)</param>
 /// <param name="cleanUpHandler">Delegate for external clean up method</param>
 public void RegisterComponent <I, T>(string uniqueName, ActivationType activationType, Action <object> cleanUpHandler)
 {
     _catalog.RegisterComponent <I, T>(uniqueName, activationType, cleanUpHandler);
 }
Beispiel #2
0
 /// <summary>
 /// Registriert eine bestimmte Komponente.
 /// </summary>
 /// <typeparam name="I">Schnittstellentyp der Komponente</typeparam>
 /// <typeparam name="T">Implementierungstyp der Komponente</typeparam>
 public void RegisterComponent <I, T>()
 {
     // Aufruf an Komponentenkatalog weiterleiten
     _catalog.RegisterComponent <I, T>();
 }