C# Класс FiftyOne.Log

This is the base class for recording messages in text files. The write operation to file occurs outside of the current thread ensuring minimal impact on performance. If the process completes before the thread has finished writing it is possible that some messages will not be written. This is by design.
This class should not be used in developers code.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_syncQueue object
_syncWait object

Защищенные методы

Метод Описание
Run ( Object stateInfo ) : void

The main loop for the log table service thread.

Write ( string message ) : void

Makes sure the logging thread is running and then writes the message to the queue of messages to be serviced.

Приватные методы

Метод Описание
IsQueueEmpty ( ) : bool

Returns true if the message queue is empty.

Описание методов

Run() защищенный Метод

The main loop for the log table service thread.
protected Run ( Object stateInfo ) : void
stateInfo Object
Результат void

Write() защищенный Метод

Makes sure the logging thread is running and then writes the message to the queue of messages to be serviced.
protected Write ( string message ) : void
message string The message to be written to the log file.
Результат void

Описание свойств

_syncQueue защищенное статическое свойство

An internal object used for synchronising access to the message queue.
protected static object _syncQueue
Результат object

_syncWait защищенное статическое свойство

An internal object used to synchronising access to the log file.
protected static object _syncWait
Результат object