Fixed up retry loop for Lync User Provisioning
This commit is contained in:
parent
10f216b713
commit
8f51befe02
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/// <summary> Deletes user.</summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue