Class ComponentFactory
Inheritance
ComponentFactory
Assembly: DotNetNuke.dll
Syntax
public static class ComponentFactory
Properties
Container
Declaration
public static IContainer Container { get; set; }
Property Value
Methods
GetComponent(string)
Declaration
public static object GetComponent(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetComponent(string, Type)
Declaration
public static object GetComponent(string name, Type contractType)
Parameters
Type |
Name |
Description |
string |
name |
|
Type |
contractType |
|
Returns
GetComponent(Type)
Declaration
public static object GetComponent(Type contractType)
Parameters
Type |
Name |
Description |
Type |
contractType |
|
Returns
GetComponentList(Type)
Declaration
public static string[] GetComponentList(Type contractType)
Parameters
Type |
Name |
Description |
Type |
contractType |
|
Returns
GetComponentList<TContract>()
Declaration
public static string[] GetComponentList<TContract>()
Returns
Type Parameters
Name |
Description |
TContract |
|
GetComponentSettings(string)
Declaration
public static IDictionary GetComponentSettings(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetComponentSettings(Type)
Declaration
public static IDictionary GetComponentSettings(Type component)
Parameters
Type |
Name |
Description |
Type |
component |
|
Returns
GetComponentSettings<TComponent>()
Declaration
public static IDictionary GetComponentSettings<TComponent>()
Returns
Type Parameters
Name |
Description |
TComponent |
|
GetComponent<TContract>()
Declaration
public static TContract GetComponent<TContract>()
Returns
Type |
Description |
TContract |
|
Type Parameters
Name |
Description |
TContract |
|
GetComponent<TContract>(string)
Declaration
public static TContract GetComponent<TContract>(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
Type |
Description |
TContract |
|
Type Parameters
Name |
Description |
TContract |
|
GetComponents<TContract>()
Declaration
public static Dictionary<string, TContract> GetComponents<TContract>()
Returns
Type Parameters
Name |
Description |
TContract |
|
InstallComponents(params IComponentInstaller[])
Declaration
public static void InstallComponents(params IComponentInstaller[] installers)
Parameters
RegisterComponent(string, Type)
Declaration
public static void RegisterComponent(string name, Type componentType)
Parameters
Type |
Name |
Description |
string |
name |
|
Type |
componentType |
|
RegisterComponent(string, Type, Type)
Declaration
public static void RegisterComponent(string name, Type contractType, Type componentType)
Parameters
Type |
Name |
Description |
string |
name |
|
Type |
contractType |
|
Type |
componentType |
|
RegisterComponent(Type)
Declaration
public static void RegisterComponent(Type componentType)
Parameters
Type |
Name |
Description |
Type |
componentType |
|
RegisterComponent(Type, Type)
Declaration
public static void RegisterComponent(Type contractType, Type componentType)
Parameters
Type |
Name |
Description |
Type |
contractType |
|
Type |
componentType |
|
RegisterComponentInstance(string, object)
Declaration
public static void RegisterComponentInstance(string name, object instance)
Parameters
RegisterComponentInstance(string, Type, object)
Declaration
public static void RegisterComponentInstance(string name, Type contractType, object instance)
Parameters
RegisterComponentInstance<TContract>(object)
Declaration
public static void RegisterComponentInstance<TContract>(object instance)
Parameters
Type |
Name |
Description |
object |
instance |
|
Type Parameters
Name |
Description |
TContract |
|
RegisterComponentInstance<TContract>(string, object)
Declaration
public static void RegisterComponentInstance<TContract>(string name, object instance)
Parameters
Type Parameters
Name |
Description |
TContract |
|
RegisterComponentSettings(string, IDictionary)
Declaration
public static void RegisterComponentSettings(string name, IDictionary dependencies)
Parameters
RegisterComponentSettings(Type, IDictionary)
Declaration
public static void RegisterComponentSettings(Type component, IDictionary dependencies)
Parameters
RegisterComponentSettings<TComponent>(IDictionary)
Declaration
public static void RegisterComponentSettings<TComponent>(IDictionary dependencies)
Parameters
Type Parameters
Name |
Description |
TComponent |
|
RegisterComponent<TComponent>()
Declaration
public static void RegisterComponent<TComponent>() where TComponent : class
Type Parameters
Name |
Description |
TComponent |
|
RegisterComponent<TComponent>(string)
Declaration
public static void RegisterComponent<TComponent>(string name) where TComponent : class
Parameters
Type |
Name |
Description |
string |
name |
|
Type Parameters
Name |
Description |
TComponent |
|
RegisterComponent<TContract, TComponent>()
Declaration
public static void RegisterComponent<TContract, TComponent>() where TComponent : class
Type Parameters
Name |
Description |
TContract |
|
TComponent |
|
RegisterComponent<TContract, TComponent>(string)
Declaration
public static void RegisterComponent<TContract, TComponent>(string name) where TComponent : class
Parameters
Type |
Name |
Description |
string |
name |
|
Type Parameters
Name |
Description |
TContract |
|
TComponent |
|