From 8f51befe02dbc44af73ff735c45b5881051244d7 Mon Sep 17 00:00:00 2001 From: robvde Date: Mon, 21 Apr 2014 13:48:26 +0400 Subject: [PATCH] Fixed up retry loop for Lync User Provisioning --- .../Lync2013.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013/Lync2013.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013/Lync2013.cs index 440cb163..a8d9c368 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013/Lync2013.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Lync2013/Lync2013.cs @@ -474,6 +474,7 @@ namespace WebsitePanel.Providers.HostedSolution HostedSolutionLog.DebugInfo("organizationId: {0}", organizationId); HostedSolutionLog.DebugInfo("userUpn: {0}", userUpn); bool bCloseRunSpace = false; + bool bResult = false; try { @@ -531,6 +532,8 @@ namespace WebsitePanel.Providers.HostedSolution command = new Command("Update-CsUserDatabase"); ExecuteShellCommand(runspace, command, false); + + bResult = true; } catch (Exception ex) { @@ -547,7 +550,7 @@ namespace WebsitePanel.Providers.HostedSolution HostedSolutionLog.LogEnd("SetLyncUserPlanInternal"); - return true; + return bResult; } /// Deletes user.