C# Класс NLog.Internal.FileAppenders.RetryingMultiProcessFileAppender

Multi-process and multi-host file appender which attempts to get exclusive write access and retries if it's not available.
Наследование: BaseFileAppender
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
TheFactory IFileAppenderFactory

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

Метод Описание
Close ( ) : void

Closes this instance.

Flush ( ) : void

Flushes this instance.

GetFileCreationTimeUtc ( ) : DateTime?

Gets the creation time for a file associated with the appender. The time returned is in Coordinated Universal Time [UTC] standard.

GetFileLastWriteTimeUtc ( ) : DateTime?

Gets the last time the file associated with the appeander is written. The time returned is in Coordinated Universal Time [UTC] standard.

GetFileLength ( ) : long?

Gets the length in bytes of the file associated with the appeander.

RetryingMultiProcessFileAppender ( string fileName, ICreateFileParameters parameters ) : System

Initializes a new instance of the RetryingMultiProcessFileAppender class.

Write ( byte bytes ) : void

Writes the specified bytes.

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

Метод Описание
CreateArchiveMutex ( ) : Mutex

Creates a mutually-exclusive lock for archiving files.

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

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

Closes this instance.
public Close ( ) : void
Результат void

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

Creates a mutually-exclusive lock for archiving files.
protected CreateArchiveMutex ( ) : Mutex
Результат Mutex

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

Flushes this instance.
public Flush ( ) : void
Результат void

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

Gets the creation time for a file associated with the appender. The time returned is in Coordinated Universal Time [UTC] standard.
public GetFileCreationTimeUtc ( ) : DateTime?
Результат DateTime?

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

Gets the last time the file associated with the appeander is written. The time returned is in Coordinated Universal Time [UTC] standard.
public GetFileLastWriteTimeUtc ( ) : DateTime?
Результат DateTime?

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

Gets the length in bytes of the file associated with the appeander.
public GetFileLength ( ) : long?
Результат long?

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

Initializes a new instance of the RetryingMultiProcessFileAppender class.
public RetryingMultiProcessFileAppender ( string fileName, ICreateFileParameters parameters ) : System
fileName string Name of the file.
parameters ICreateFileParameters The parameters.
Результат System

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

Writes the specified bytes.
public Write ( byte bytes ) : void
bytes byte The bytes.
Результат void

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

TheFactory публичное статическое свойство

public static IFileAppenderFactory TheFactory
Результат IFileAppenderFactory