Class ExtensionManagerHelper
Inheritance
ExtensionManagerHelper
Assembly: CAMIPC.DotnetHelper.dll
Syntax
public static class ExtensionManagerHelper
Methods
AddExtension(ComWrapper<IIpcExtensionManager>, TStorageType, string, string)
Declaration
public static void AddExtension(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string libraryPath, string extensionTypeId)
Parameters
CreateExtension(ComWrapper<IIpcExtensionManager>, string)
Creates an extension by its unique identifier
Declaration
public static ComWrapper<IIpcExtension> CreateExtension(this ComWrapper<IIpcExtensionManager> managerCom, string extensionTypeId)
Parameters
Returns
CreateExtensions(ComWrapper<IIpcExtensionManager>, string)
Creates extensions by their unique identifiers
Declaration
public static ComWrapper<IIpcListExtension> CreateExtensions(this ComWrapper<IIpcExtensionManager> managerCom, string extensionTypeIds)
Parameters
Returns
EnumerateExtensionTypeInfos(ComWrapper<IIpcExtensionManager>, string)
Lists all extension type infos for a group. Each item is disposed when the iterator advances.
Declaration
public static IEnumerable<ComWrapper<IIpcExtensionTypeInfo>> EnumerateExtensionTypeInfos(this ComWrapper<IIpcExtensionManager> managerCom, string group)
Parameters
Returns
EnumerateLibraries(ComWrapper<IIpcExtensionManager>)
Lists all extension libraries. Each item is disposed when the iterator advances.
Declaration
public static IEnumerable<ComWrapper<IIpcExtensionLibraryInfo>> EnumerateLibraries(this ComWrapper<IIpcExtensionManager> managerCom)
Parameters
Returns
EnumeratePendingDeletionLibraries(ComWrapper<IIpcExtensionManager>)
Lists libraries with pending deletion (DLL was locked during UnRegisterLibrary).
Each item is disposed when the iterator advances.
Declaration
public static IEnumerable<ComWrapper<IIpcExtensionLibraryInfo>> EnumeratePendingDeletionLibraries(this ComWrapper<IIpcExtensionManager> managerCom)
Parameters
Returns
EnumerateTypeGroups(ComWrapper<IIpcExtensionManager>)
Lists all extension type groups
Declaration
public static IEnumerable<string> EnumerateTypeGroups(this ComWrapper<IIpcExtensionManager> managerCom)
Parameters
Returns
EnumerateTypeInfosFromLibrary(ComWrapper<IIpcExtensionManager>, string)
Lists all extension type infos from a library. Each item is disposed when the iterator advances.
Declaration
public static IEnumerable<ComWrapper<IIpcExtensionTypeInfo>> EnumerateTypeInfosFromLibrary(this ComWrapper<IIpcExtensionManager> managerCom, string libraryPath)
Parameters
Returns
FreeExtension(ComWrapper<IIpcExtensionManager>, long)
Frees the extension by its unique instance identifier
Declaration
public static void FreeExtension(this ComWrapper<IIpcExtensionManager> managerCom, long extensionInstanceId)
Parameters
FreeLibrary(ComWrapper<IIpcExtensionManager>, string)
Frees the library by its path
Declaration
public static void FreeLibrary(this ComWrapper<IIpcExtensionManager> managerCom, string libraryPath)
Parameters
GetApiDependencies(ComWrapper<IIpcExtensionManager>)
Reference assemblies a built macro must compile against (use for macro .NET References).
Declaration
public static IListString GetApiDependencies(this ComWrapper<IIpcExtensionManager> managerCom)
Parameters
Returns
GetApiVersion(ComWrapper<IIpcExtensionManager>)
Current CAM Open API version (use as the macro .NET SDK version).
Declaration
public static string GetApiVersion(this ComWrapper<IIpcExtensionManager> managerCom)
Parameters
Returns
GetExtension(ComWrapper<IIpcExtensionManager>, long)
Returns the extension by its unique instance identifier
Declaration
public static ComWrapper<IIpcExtension> GetExtension(this ComWrapper<IIpcExtensionManager> managerCom, long extensionInstanceId)
Parameters
Returns
GetExtensionDisabled(ComWrapper<IIpcExtensionManager>, TStorageType, string)
Returns whether the extension is disabled
Declaration
public static bool GetExtensionDisabled(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string extensionIdent)
Parameters
Returns
GetExtensionSetting(ComWrapper<IIpcExtensionManager>, string, string)
Effective value of an extension setting, resolved across storage levels then manifest default.
Returns null when nothing defines the key.
Declaration
public static string? GetExtensionSetting(this ComWrapper<IIpcExtensionManager> managerCom, string extensionTypeId, string key)
Parameters
Returns
GetExtensionSettingKeys(ComWrapper<IIpcExtensionManager>, string)
Keys of an extension's settings, unioned across all levels and manifest defaults (raw list wrapper).
Declaration
public static ComWrapper<IListString> GetExtensionSettingKeys(this ComWrapper<IIpcExtensionManager> managerCom, string extensionTypeId)
Parameters
Returns
GetExtensionSettingSourceLevel(ComWrapper<IIpcExtensionManager>, string, string, out bool, out bool)
Storage level that supplies the effective value of a setting (for an "inherited from level X"
indicator). found=false when nothing defines the key; fromDefault=true when the value comes
from the manifest default, in which case the returned level is meaningless.
Declaration
public static TStorageType GetExtensionSettingSourceLevel(this ComWrapper<IIpcExtensionManager> managerCom, string extensionTypeId, string key, out bool found, out bool fromDefault)
Parameters
Returns
GetExtensionTypeGroup(ComWrapper<IIpcExtensionManager>, string)
Returns the group info by its unique ident
Declaration
public static ComWrapper<IIpcExtensionTypeGroup> GetExtensionTypeGroup(this ComWrapper<IIpcExtensionManager> managerCom, string groupId)
Parameters
Returns
GetExtensionTypeGroups(ComWrapper<IIpcExtensionManager>)
Returns the list of extension type groups (raw list wrapper)
Declaration
public static ComWrapper<IListString> GetExtensionTypeGroups(this ComWrapper<IIpcExtensionManager> managerCom)
Parameters
Returns
GetExtensionTypeInfo(ComWrapper<IIpcExtensionManager>, string)
Returns the extension type info by its unique identifier
Declaration
public static ComWrapper<IIpcExtensionTypeInfo> GetExtensionTypeInfo(this ComWrapper<IIpcExtensionManager> managerCom, string extensionTypeId)
Parameters
Returns
GetExtensionTypeInfos(ComWrapper<IIpcExtensionManager>, string)
Returns the list of extension type infos for a group (raw list wrapper)
Declaration
public static ComWrapper<IIpcListExtensionTypeInfo> GetExtensionTypeInfos(this ComWrapper<IIpcExtensionManager> managerCom, string group)
Parameters
Returns
GetExtensionTypeInfosFromLibrary(ComWrapper<IIpcExtensionManager>, string)
Returns the list of extension type infos from a library (raw list wrapper)
Declaration
public static ComWrapper<IIpcListExtensionTypeInfo> GetExtensionTypeInfosFromLibrary(this ComWrapper<IIpcExtensionManager> managerCom, string libraryPath)
Parameters
Returns
GetFieldInherited(ComWrapper<IIpcExtensionManager>, TStorageType, string, TStorageField)
Returns whether the field is inherited
Declaration
public static bool GetFieldInherited(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string entityIdent, TStorageField field)
Parameters
Returns
GetInstanceId(ComWrapper<IIpcExtensionManager>)
Get unique identifier of current instance
Declaration
public static string GetInstanceId(this ComWrapper<IIpcExtensionManager> managerCom)
Parameters
Returns
GetLibrariesInfo(ComWrapper<IIpcExtensionManager>)
Returns the list of libraries (raw list wrapper)
Declaration
public static ComWrapper<IIpcListExtensionLibraryInfo> GetLibrariesInfo(this ComWrapper<IIpcExtensionManager> managerCom)
Parameters
Returns
GetLibraryDisabled(ComWrapper<IIpcExtensionManager>, TStorageType, string)
Returns whether the library is disabled
Declaration
public static bool GetLibraryDisabled(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string libraryPath)
Parameters
Returns
GetLibraryInfo(ComWrapper<IIpcExtensionManager>, string)
Get extension library properties by unique ident of extension inside it
Declaration
public static ComWrapper<IIpcExtensionLibraryInfo> GetLibraryInfo(this ComWrapper<IIpcExtensionManager> managerCom, string extensionTypeId)
Parameters
Returns
GetLibraryLoaded(ComWrapper<IIpcExtensionManager>, string)
Returns whether the library is loaded
Declaration
public static bool GetLibraryLoaded(this ComWrapper<IIpcExtensionManager> managerCom, string libraryPath)
Parameters
Returns
GetLibraryStorages(ComWrapper<IIpcExtensionManager>, string)
Get all storages, where a library has non-inherited values
Declaration
public static ComWrapper<IListInteger> GetLibraryStorages(this ComWrapper<IIpcExtensionManager> managerCom, string libraryPath)
Parameters
Returns
RegisterLibrary(ComWrapper<IIpcExtensionManager>, TStorageType, string)
Declaration
public static ComWrapper<IIpcExtensionLibraryInfo> RegisterLibrary(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string descriptionFilePath)
Parameters
Returns
RegisterLibraryFromFolder(ComWrapper<IIpcExtensionManager>, TStorageType, string, out bool)
Registers a library from folder
Declaration
public static ComWrapper<IIpcExtensionLibraryInfo> RegisterLibraryFromFolder(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string folderPath, out bool needReload)
Parameters
Returns
ReloadStorage(ComWrapper<IIpcExtensionManager>, TStorageType)
Declaration
public static void ReloadStorage(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType)
Parameters
RemoveExtension(ComWrapper<IIpcExtensionManager>, TStorageType, string, string)
Declaration
public static void RemoveExtension(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string libraryPath, string extensionTypeId)
Parameters
RemoveExtensionSetting(ComWrapper<IIpcExtensionManager>, TStorageType, string, string)
Removes an extension setting from one storage level.
Declaration
public static void RemoveExtensionSetting(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string extensionTypeId, string key)
Parameters
SetExtensionDisabled(ComWrapper<IIpcExtensionManager>, TStorageType, string, bool)
Sets whether the extension is disabled
Declaration
public static void SetExtensionDisabled(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string extensionTypeId, bool disabled)
Parameters
SetExtensionSetting(ComWrapper<IIpcExtensionManager>, TStorageType, string, string, string)
Writes an extension setting into one storage level (secret keys stay in-session only).
Declaration
public static void SetExtensionSetting(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string extensionTypeId, string key, string value)
Parameters
SetFieldInherited(ComWrapper<IIpcExtensionManager>, TStorageType, string, TStorageField)
Sets whether the field is inherited
Declaration
public static void SetFieldInherited(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string entityIdent, TStorageField field)
Parameters
SetLibraryDisabled(ComWrapper<IIpcExtensionManager>, TStorageType, string, bool)
Sets whether the library is disabled
Declaration
public static void SetLibraryDisabled(this ComWrapper<IIpcExtensionManager> managerCom, TStorageType storageType, string libraryPath, bool disabled)
Parameters
UnRegisterLibrary(ComWrapper<IIpcExtensionManager>, string)
Declaration
public static void UnRegisterLibrary(this ComWrapper<IIpcExtensionManager> managerCom, string libraryPath)
Parameters