Beispiel #1
0
 public LogEntry(LogLevel lvl, string message)
 {
     timestamp = DateTime.Now;
     source = new SourceInfo(null);
     Msg = message;
     Level = lvl;
     process_id = System.Diagnostics.Process.GetCurrentProcess().Id;
     thread_id = System.Threading.Thread.CurrentThread.ManagedThreadId;
     object_code = 0;
     additional = null;
     call_stack = null;
     ex_stack = null;
     ex = null;
 }
Beispiel #2
0
        /// <summary>
        /// Создает новую запись
        /// </summary>
        /// <param name="poolId">Идентификатор пула</param>        
        /// <param name="poolName">Имя пула</param>
        /// <param name="threadsCount">Количество потоков</param>
        /// <param name="inProcessCount">Количество объектов в обработке</param>
        /// <param name="inQueueCount">Количество объектов в очереди на обработку</param>
        /// <param name="status">Текущий статус пула</param>
        public StatRecord(string poolName, int threadsCount, int inProcessCount, int inQueueCount, PoolStatus status)
        {
            source = new SourceInfo(poolName);
            timestamp = DateTime.Now;
            
            ThreadsCount = threadsCount;
            InProcessCount = inProcessCount;
            InQueueCount = inQueueCount;
            Status = status;

            ProcessedCount = 0;
            ErrorsCount = 0;
            ProcessTime = 0;
            ForeignTime = 0;

            PickedCount = 0;
            PickErrors = 0;
            EnqueuedCount = 0;
            PickTime = 0;
            PicksCount = 0;
        }