💥 Breaking Changes
PowerShellHelper class to handle HierarchyProvider instantiation
HierarchyProvider instances in PowerShell scripts must now be created using the PowerShellHelper class
Internal: see TFS [#81394]
HierarchyProvider instances must now be created exclusively via the CreateProvider method of the PowerShellHelper class.
public static IHierarchyProvider CreateProvider(bool preferLegacyWcf = true)
Parameters:
preferLegacyWcf– Iftrue, the method attempts to read the legacy WCF URL from the Windows registry and create the provider using that URL.
Important:
This method uses Registry.Win32.RegistryUtil and will fail on non-Windows systems.
PowerShell example:
$provider = [inPoint.API.PowerShellHelper]::CreateProvider($true)
Required initialization for PowerShell scripts
Internal: see TFS [#81394]
Since PowerShell does not support
AssemblyResolve, you must call the following method to resolve assemblies from the current directory: public static void InitializeForPowershell(bool enableDebugLog)
enableDebugLog– Enables debug logging to the console when set totrue.
PowerShell example:
[inPoint.API.PowerShellHelper]::InitializeForPowershell($true)