Exemplo n.º 1
0
 public List <StartupException> GetStartupExceptionsByType(StartupError type)
 {
     if (StartupExceptions == null)
     {
         return(null);
     }
     return(StartupExceptions.Where(st => st.Error == type).ToList());
 }
Exemplo n.º 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 { }
     }
 }
Exemplo n.º 3
0
 private void ProcessError(StartupError error)
 {
     Error = error;
     Engine.Services.StartupExceptions.Add(this);
 }
Exemplo n.º 4
0
 protected StartupException(SerializationInfo info, StreamingContext context, StartupError error) : base(info, context)
 {
     ProcessError(error);
 }
Exemplo n.º 5
0
 public StartupException(string message, Exception innerException, StartupError error) : base(message, innerException)
 {
     ProcessError(error);
 }
Exemplo n.º 6
0
 public StartupException(string message, StartupError error) : base(message)
 {
     ProcessError(error);
 }