fixed warnings

This commit is contained in:
vfedosevich 2013-06-19 14:29:22 +03:00
parent 1c40d9e59b
commit 1740d70845
6 changed files with 12 additions and 26 deletions

View file

@ -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
}
}

View file

@ -1709,10 +1709,7 @@ namespace WebsitePanel.EnterpriseServer
return retUser;
}
catch (Exception ex)
{
//throw TaskManager.WriteError(ex);
}
catch { }
finally
{
TaskManager.CompleteTask();

View file

@ -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)

View file

@ -806,9 +806,8 @@ namespace WebsitePanel.EnterpriseServer
//
return true;
}
catch(Exception e)
{
//
catch
{ //
return false;
}
}

View file

@ -531,9 +531,8 @@ namespace WebsitePanel.EnterpriseServer
scheduledTasks.Add(task.ScheduleId, task);
}
}
catch (Exception e)
{
}
catch { }
return scheduledTasks;
}

View file

@ -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>