Пример #1
0
 public List <StartupException> GetStartupExceptionsByType(StartupError type)
 {
     if (StartupExceptions == null)
     {
         return(null);
     }
     return(StartupExceptions.Where(st => st.Error == type).ToList());
 }
Пример #2
0
 private static void RaiseStartupError(Assembly assembly, Type startupType, Exception ex)
 {
     foreach (var _delegate in StartupError.GetInvocationList())
     {
         try
         {
             _delegate.DynamicInvoke(assembly, startupType, ex);
         }
         catch { }
     }
 }
Пример #3
0
 private void ProcessError(StartupError error)
 {
     Error = error;
     Engine.Services.StartupExceptions.Add(this);
 }
Пример #4
0
 protected StartupException(SerializationInfo info, StreamingContext context, StartupError error) : base(info, context)
 {
     ProcessError(error);
 }
Пример #5
0
 public StartupException(string message, Exception innerException, StartupError error) : base(message, innerException)
 {
     ProcessError(error);
 }
Пример #6
0
 public StartupException(string message, StartupError error) : base(message)
 {
     ProcessError(error);
 }