Class AddInManager
- Namespace
- Dynamicweb.Extensibility.AddIns
- Assembly
- Dynamicweb.Core.dll
Manager for extensibility.
public static class AddInManager
- Inheritance
-
AddInManager
- Inherited Members
Properties
InstalledAddInsFolderPath
public static string InstalledAddInsFolderPath { get; }
Property Value
LocalAddInsFolderPath
public static string LocalAddInsFolderPath { get; }
Property Value
Methods
ClearCache()
public static void ClearCache()
EnsureAssembliesAreLoaded()
public static void EnsureAssembliesAreLoaded()
GetAddInActive(Type)
Gets the AddIn active attribute.
public static bool GetAddInActive(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInAuthors(Type)
Retrieves the list of values of the "Name" property of an add-in's AddInAuthorAttribute attributes.
public static IEnumerable<string> GetAddInAuthors(Type addInType)
Parameters
addInTypeTypeAdd-in type.
Returns
GetAddInDeprecated(Type)
Gets the add in deprecated attribute.
public static bool GetAddInDeprecated(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInDescription(Type)
Gets the add in description attribute.
public static string GetAddInDescription(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInFeatureEnabled(Type)
Gets whether the AddIn feature is enabled or disabled.
public static bool GetAddInFeatureEnabled(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInGroup(Type)
Gets the add in group attribute.
public static string GetAddInGroup(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInIcon(Type, KnownIcon)
Gets the add in icon attribute.
public static KnownIcon GetAddInIcon(Type addInType, KnownIcon defaultIcon)
Parameters
addInTypeTypeType of the add in.
defaultIconKnownIconThe icon should be return if addInType doesn't have AddInIconAttribute attribute
Returns
GetAddInIgnore(Type)
Returns a value indicating whether the given type has an Ignore attribute; true if this is the case, false otherwise.
public static bool GetAddInIgnore(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInImage(Type)
Gets the add in image attribute.
public static string GetAddInImage(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInLabel(Type)
Gets the add in label attribute.
public static string GetAddInLabel(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInName(Type)
public static string GetAddInName(Type type)
Parameters
typeType
Returns
GetAddInNames(Type)
Gets AddInName attributes from the specified type. Use this method if the type contains multiple Name attributes, otherwise use the GetAddInName function.
public static IEnumerable<string> GetAddInNames(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInOrder(Type)
Gets the add in order attribute.
public static int GetAddInOrder(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInParameterEditorInfo(Type, string)
Gets the add in parameter editor type.
public static ParameterEditorInfo? GetAddInParameterEditorInfo(Type addInType, string parameterName)
Parameters
Returns
GetAddInParameterGroupAttribute(Type, string)
Gets the AddInParameterGroupAttribute.
public static AddInParameterGroupAttribute? GetAddInParameterGroupAttribute(Type addInType, string parameterName)
Parameters
Returns
- AddInParameterGroupAttribute
The AddInParameterGroupAttribute instance or
null.
GetAddInParameterLabels(Type)
Gets the add in parameter labels.
public static IDictionary<string, string> GetAddInParameterLabels(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInParameterSectionName(Type, string)
Gets the name of the add in parameter section.
public static string GetAddInParameterSectionName(Type addInType, string parameterName)
Parameters
Returns
GetAddInParameterType(object, string)
Gets the type of the add in parameter.
public static Type? GetAddInParameterType(object instance, string parameterName)
Parameters
Returns
GetAddInParameterValue(object, string)
Gets the add in parameter value.
public static object? GetAddInParameterValue(object instance, string parameterName)
Parameters
Returns
GetAddInParameters(Type)
Gets the add in parameters.
public static IEnumerable<string> GetAddInParameters(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInTargets(Type)
Retrieves the list of values of the "Path" property of an add-in's AddInTargetAttribute attributes.
public static IEnumerable<string> GetAddInTargets(Type addInType)
Parameters
addInTypeTypeAdd-in type.
Returns
GetAddInUseParameterGrouping(Type)
Gets the add in use parameter grouping attribute.
public static bool GetAddInUseParameterGrouping(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInUseParameterOrdering(Type)
Gets the add in use parameter ordering attribute.
public static bool GetAddInUseParameterOrdering(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInUseParameterSectioning(Type)
Gets the add in use parameter sectioning attribute.
public static bool GetAddInUseParameterSectioning(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetAddInUseParameters(Type)
Gets the add in use parameters.
public static bool GetAddInUseParameters(Type addInType)
Parameters
addInTypeTypeType of the add in.
Returns
GetInstance(string, params object?[]?)
public static object? GetInstance(string typeName, params object?[]? arguments)
Parameters
Returns
GetInstance(string, Type, params object?[]?)
public static object? GetInstance(string typeName, Type baseType, params object?[]? arguments)
Parameters
Returns
GetInstance(Type, params object?[]?)
public static object? GetInstance(Type type, params object?[]? arguments)
Parameters
Returns
GetInstance<T>(params object?[]?)
public static T? GetInstance<T>(params object?[]? arguments)
Parameters
argumentsobject[]
Returns
- T
Type Parameters
T
GetInstance<T>(string)
public static T? GetInstance<T>(string typeName)
Parameters
typeNamestring
Returns
- T
Type Parameters
T
GetInstance<T>(string, params object?[]?)
public static T? GetInstance<T>(string typeName, params object?[]? arguments)
Parameters
Returns
- T
Type Parameters
T
GetInstance<T>(Type)
public static T? GetInstance<T>(Type type)
Parameters
typeType
Returns
- T
Type Parameters
T
GetInstance<T>(Type, params object?[]?)
public static T? GetInstance<T>(Type type, params object?[]? arguments)
Parameters
Returns
- T
Type Parameters
T
GetInstances(Type, params object?[]?)
public static IEnumerable<object> GetInstances(Type type, params object?[]? arguments)
Parameters
Returns
GetInstances<T>()
public static IEnumerable<T> GetInstances<T>()
Returns
- IEnumerable<T>
Type Parameters
T
GetInstances<T>(params object?[]?)
public static IEnumerable<T> GetInstances<T>(params object?[]? arguments)
Parameters
argumentsobject[]
Returns
- IEnumerable<T>
Type Parameters
T
GetType(string)
public static Type? GetType(string typeName)
Parameters
typeNamestring
Returns
GetType(string, Type)
public static Type? GetType(string typeName, Type baseType)
Parameters
Returns
GetTypeAlias(Type)
public static string? GetTypeAlias(Type type)
Parameters
typeType
Returns
GetTypeUnvalidated(string)
public static Type? GetTypeUnvalidated(string typeName)
Parameters
typeNamestring
Returns
GetTypeUnvalidated(string, Type)
public static Type? GetTypeUnvalidated(string typeName, Type baseType)
Parameters
Returns
GetTypeUnvalidated<T>(string)
public static Type? GetTypeUnvalidated<T>(string typeName)
Parameters
typeNamestring
Returns
Type Parameters
T
GetType<T>(string)
public static Type? GetType<T>(string typeName)
Parameters
typeNamestring
Returns
Type Parameters
T
GetTypes(Type)
public static IEnumerable<Type> GetTypes(Type baseType)
Parameters
baseTypeType
Returns
GetTypesUnvalidated<T>()
public static IEnumerable<Type> GetTypesUnvalidated<T>()
Returns
Type Parameters
T
GetTypes<T>()
public static IEnumerable<Type> GetTypes<T>()
Returns
Type Parameters
T
IsBlacklistedAddIn(string)
public static bool IsBlacklistedAddIn(string addinName)
Parameters
addinNamestring
Returns
IsBlacklistedAddInFolder(string)
public static bool IsBlacklistedAddInFolder(string folderName)
Parameters
folderNamestring
Returns
LoadAddIns(string)
public static void LoadAddIns(string addInFolderPath)
Parameters
addInFolderPathstring
LoadTypeAliases()
public static void LoadTypeAliases()
ResolveContextNameFromDirectory(string)
public static string ResolveContextNameFromDirectory(string dir)
Parameters
dirstring
Returns
SanitizeTypeName(string)
public static string SanitizeTypeName(string typeName)
Parameters
typeNamestring
Returns
SanitizeTypeName(Type)
public static string? SanitizeTypeName(Type type)
Parameters
typeType
Returns
SetAddInParameterValue(object, string, object?)
Sets the add in parameter value.
public static void SetAddInParameterValue(object instance, string parameterName, object? value)
Parameters
SetServiceProvider(IServiceProvider)
public static void SetServiceProvider(IServiceProvider serviceProvider)
Parameters
serviceProviderIServiceProvider
UnloadAssembly(string)
public static ApplicationResponse<TypeOperationMessage<List<string>>> UnloadAssembly(string addInName)
Parameters
addInNamestring