GetReports() private méthode

private GetReports ( ) : string[]
Résultat string[]
        private static void PopulateReports()
        {
            object obj = CrashReport.reportsLock;

            lock (obj)
            {
                if (CrashReport.internalReports == null)
                {
                    string[] reports = CrashReport.GetReports();
                    CrashReport.internalReports = new List <CrashReport>(reports.Length);
                    string[] array = reports;
                    for (int i = 0; i < array.Length; i++)
                    {
                        string   text = array[i];
                        double   value;
                        string   reportData = CrashReport.GetReportData(text, out value);
                        DateTime dateTime   = new DateTime(1970, 1, 1);
                        DateTime dateTime2  = dateTime.AddSeconds(value);
                        CrashReport.internalReports.Add(new CrashReport(text, dateTime2, reportData));
                    }
                    List <CrashReport> arg_AB_0 = CrashReport.internalReports;
                    if (CrashReport.< > f__mg$cache0 == null)
                    {
                        CrashReport.< > f__mg$cache0 = new Comparison <CrashReport>(CrashReport.Compare);
                    }
                    arg_AB_0.Sort(CrashReport.< > f__mg$cache0);
                }
            }
        }
Exemple #2
0
        private static void PopulateReports()
        {
            object obj = CrashReport.reportsLock;

            Monitor.Enter(obj);
            try
            {
                if (CrashReport.internalReports == null)
                {
                    string[] reports = CrashReport.GetReports();
                    CrashReport.internalReports = new List <CrashReport>(reports.Length);
                    string[] array = reports;
                    for (int i = 0; i < array.Length; i++)
                    {
                        string text = array[i];
                        double value;
                        string text2;
                        CrashReport.GetReportData(text, out value, out text2);
                        DateTime dateTime  = new DateTime(1970, 1, 1);
                        DateTime dateTime2 = dateTime.AddSeconds(value);
                        CrashReport.internalReports.Add(new CrashReport(text, dateTime2, text2));
                    }
                    CrashReport.internalReports.Sort(new Comparison <CrashReport>(CrashReport.Compare));
                }
            }
            finally
            {
                Monitor.Exit(obj);
            }
        }
        private static void PopulateReports()
        {
            object obj = CrashReport.reportsLock;

            lock (obj)
            {
                if (CrashReport.internalReports == null)
                {
                    string[] reports = CrashReport.GetReports();
                    CrashReport.internalReports = new List <CrashReport>(reports.Length);
                    foreach (string text in reports)
                    {
                        double   value;
                        string   reportData = CrashReport.GetReportData(text, out value);
                        DateTime dateTime   = new DateTime(1970, 1, 1);
                        DateTime dateTime2  = dateTime.AddSeconds(value);
                        CrashReport.internalReports.Add(new CrashReport(text, dateTime2, reportData));
                    }
                    List <CrashReport> list = CrashReport.internalReports;
                    if (CrashReport.< > f__mg$cache0 == null)
                    {
                        CrashReport.< > f__mg$cache0 = new Comparison <CrashReport>(CrashReport.Compare);
                    }
                    list.Sort(CrashReport.< > f__mg$cache0);
                }
            }
        }
 private static void PopulateReports()
 {
     lock (CrashReport.reportsLock)
     {
         if (CrashReport.internalReports != null)
         {
             return;
         }
         string[] local_1 = CrashReport.GetReports();
         CrashReport.internalReports = new List <CrashReport>(local_1.Length);
         foreach (string item_0 in local_1)
         {
             double local_5;
             string local_6;
             CrashReport.GetReportData(item_0, out local_5, out local_6);
             DateTime local_7 = new DateTime(1970, 1, 1).AddSeconds(local_5);
             CrashReport.internalReports.Add(new CrashReport(item_0, local_7, local_6));
         }
         CrashReport.internalReports.Sort(new Comparison <CrashReport>(CrashReport.Compare));
     }
 }
Exemple #5
0
        private static void PopulateReports()
        {
            object obj = CrashReport.reportsLock;

            lock (obj)
            {
                bool flag = CrashReport.internalReports != null;
                if (!flag)
                {
                    string[] reports = CrashReport.GetReports();
                    CrashReport.internalReports = new List <CrashReport>(reports.Length);
                    string[] array = reports;
                    for (int i = 0; i < array.Length; i++)
                    {
                        string   text = array[i];
                        double   value;
                        string   reportData = CrashReport.GetReportData(text, out value);
                        DateTime dateTime   = new DateTime(1970, 1, 1).AddSeconds(value);
                        CrashReport.internalReports.Add(new CrashReport(text, dateTime, reportData));
                    }
                    CrashReport.internalReports.Sort(new Comparison <CrashReport>(CrashReport.Compare));
                }
            }
        }