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