C# Класс EpLibrary.cs.LogWorker

Log Worker
Наследование: BaseTextFile, IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Dispose void
execute void
stop void

Открытые методы

Метод Описание
Dispose ( ) : void
LogWorker ( LogWorker b ) : System

Default copy constructor

LogWorker ( string fileName, Encoding encodingType = null ) : System

Default Constructor

Stop ( ) : void

Stop the logging

WriteLog ( string pMsg ) : void

Writer given message to the log with current time.

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

Метод Описание
loadFromFile ( StreamReader stream ) : void

Actual load Function that loads values from the file.

writeLoop ( ) : void

Loop Function that writes to the file.

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

Метод Описание
Dispose ( bool isDisposing ) : void
execute ( ) : void

Start the log worker

stop ( ) : void

Stop the log worker

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

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

LogWorker() публичный Метод

Default copy constructor
public LogWorker ( LogWorker b ) : System
b LogWorker the copying object
Результат System

LogWorker() публичный Метод

Default Constructor
public LogWorker ( string fileName, Encoding encodingType = null ) : System
fileName string name of log file
encodingType System.Text.Encoding encoding type
Результат System

Stop() публичный Метод

Stop the logging
public Stop ( ) : void
Результат void

WriteLog() публичный Метод

Writer given message to the log with current time.
public WriteLog ( string pMsg ) : void
pMsg string the message to print to the log file.
Результат void

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

Actual load Function that loads values from the file.
protected loadFromFile ( StreamReader stream ) : void
stream System.IO.StreamReader
Результат void

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

Loop Function that writes to the file.
protected writeLoop ( ) : void
Результат void