fix: resolve Exchange runspace and PowerShell invoke API mismatches

This commit is contained in:
Meik
2026-02-27 09:26:28 +01:00
parent c842d0e756
commit 47e00b10fa
2 changed files with 13 additions and 21 deletions

View File

@@ -19,7 +19,7 @@ namespace C4IT.LIAM
{
private static readonly TimeSpan PowerShellInvokeTimeout = TimeSpan.FromSeconds(120);
private static Collection<PSObject> InvokePowerShellWithTimeout(PowerShell ps, TimeSpan timeout, string operationName)
private static PSDataCollection<PSObject> InvokePowerShellWithTimeout(PowerShell ps, TimeSpan timeout, string operationName)
{
IAsyncResult asyncResult = null;
try