fixed warnings
This commit is contained in:
parent
1c40d9e59b
commit
1740d70845
6 changed files with 12 additions and 26 deletions
|
@ -212,7 +212,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
// try implicit type conversion
|
// try implicit type conversion
|
||||||
props[i].SetValue(obj, propVal, null);
|
props[i].SetValue(obj, propVal, null);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch
|
||||||
{
|
{
|
||||||
// convert to string and then set property value
|
// convert to string and then set property value
|
||||||
try
|
try
|
||||||
|
@ -220,14 +220,11 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
string strVal = propVal.ToString();
|
string strVal = propVal.ToString();
|
||||||
props[i].SetValue(obj, Cast(strVal, props[i].PropertyType), null);
|
props[i].SetValue(obj, Cast(strVal, props[i].PropertyType), null);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch { }
|
||||||
{
|
|
||||||
// skip property init
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) { } // just skip
|
catch { } // just skip
|
||||||
} // for properties
|
} // for properties
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1694,8 +1694,8 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
// get mailbox settings
|
// get mailbox settings
|
||||||
Organizations orgProxy = GetOrganizationProxy(org.ServiceId);
|
Organizations orgProxy = GetOrganizationProxy(org.ServiceId);
|
||||||
string accountName = GetAccountName(account.AccountName);
|
string accountName = GetAccountName(account.AccountName);
|
||||||
|
|
||||||
|
|
||||||
OrganizationUser retUser = orgProxy.GetUserGeneralSettings(accountName, org.OrganizationId);
|
OrganizationUser retUser = orgProxy.GetUserGeneralSettings(accountName, org.OrganizationId);
|
||||||
retUser.AccountId = accountId;
|
retUser.AccountId = accountId;
|
||||||
retUser.AccountName = account.AccountName;
|
retUser.AccountName = account.AccountName;
|
||||||
|
@ -1706,13 +1706,10 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
retUser.IsLyncUser = DataProvider.CheckLyncUserExists(accountId);
|
retUser.IsLyncUser = DataProvider.CheckLyncUserExists(accountId);
|
||||||
retUser.IsBlackBerryUser = BlackBerryController.CheckBlackBerryUserExists(accountId);
|
retUser.IsBlackBerryUser = BlackBerryController.CheckBlackBerryUserExists(accountId);
|
||||||
retUser.SubscriberNumber = account.SubscriberNumber;
|
retUser.SubscriberNumber = account.SubscriberNumber;
|
||||||
|
|
||||||
return retUser;
|
return retUser;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch { }
|
||||||
{
|
|
||||||
//throw TaskManager.WriteError(ex);
|
|
||||||
}
|
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
TaskManager.CompleteTask();
|
TaskManager.CompleteTask();
|
||||||
|
|
|
@ -92,10 +92,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
DataProvider.AddAuditLogRecord(recordId, severityId, userId, username, packageId, itemId, itemName,
|
DataProvider.AddAuditLogRecord(recordId, severityId, userId, username, packageId, itemId, itemName,
|
||||||
startDate, finishDate, sourceName, taskName, executionLog);
|
startDate, finishDate, sourceName, taskName, executionLog);
|
||||||
}
|
}
|
||||||
catch(Exception ex)
|
catch { }
|
||||||
{
|
|
||||||
// skip error
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static DateTime GetStartDate(DateTime d)
|
private static DateTime GetStartDate(DateTime d)
|
||||||
|
|
|
@ -806,9 +806,8 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
//
|
//
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch
|
||||||
{
|
{ //
|
||||||
//
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -531,9 +531,8 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
scheduledTasks.Add(task.ScheduleId, task);
|
scheduledTasks.Add(task.ScheduleId, task);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch { }
|
||||||
{
|
|
||||||
}
|
|
||||||
return scheduledTasks;
|
return scheduledTasks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,9 +55,6 @@
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\Bin\WebsitePanel.EnterpriseServer.Base.dll</HintPath>
|
<HintPath>..\..\Bin\WebsitePanel.EnterpriseServer.Base.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="WebsitePanel.EnterpriseServer.Client">
|
|
||||||
<HintPath>..\..\Bin\WebsitePanel.EnterpriseServer.Client.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="WebsitePanel.Providers.Base">
|
<Reference Include="WebsitePanel.Providers.Base">
|
||||||
<HintPath>..\..\Bin\WebsitePanel.Providers.Base.dll</HintPath>
|
<HintPath>..\..\Bin\WebsitePanel.Providers.Base.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue