Example #1
0
 // Attempts to execute fault type algorithm and processes errors if they occur.
 private FaultType ExecuteFaultTypeAlgorithm(FaultTypeAlgorithm algorithm, FaultLocationDataSet faultDataSet, string parameters)
 {
     try
     {
         return(algorithm(faultDataSet, parameters));
     }
     catch (Exception ex)
     {
         OnProcessException(new Exception(string.Format("Error executing fault type algorithm: {0}", ex.Message), ex));
         return(FaultType.None);
     }
 }
Example #2
0
 private void LoadFaultTypeAlgorithm(XElement parentElement, out FaultTypeAlgorithm faultTypeAlgorithm, out string parameters)
 {
     LoadFaultAlgorithm(parentElement, "faultType", out faultTypeAlgorithm, out parameters);
 }