Beispiel #1
0
        private void GetAllExceptions(ExceptionGridModel exceptions,
                                      int exceptionDays = 0, string exceptionServer = "")
        {
            if (string.IsNullOrEmpty(exceptionServer))
            {
                exceptionServer = Environment.MachineName;
            }

            exceptions.ExceptionGrid = exceptionServer == ExceptionOptions.AllServers
                ? _reader.GetExceptionsForAllServers(exceptionDays)
                : _reader.GetExceptionsByServer(exceptionDays, exceptionServer);
        }