C# Class 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.
Inheritance: BaseFileAppender
Afficher le fichier Open project: NLog/NLog

Méthodes publiques

Свойство Type Description
TheFactory IFileAppenderFactory

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
CreateArchiveMutex ( ) : Mutex

Creates a mutually-exclusive lock for archiving files.

Method Details

Close() public méthode

Closes this instance.
public Close ( ) : void
Résultat void

CreateArchiveMutex() protected méthode

Creates a mutually-exclusive lock for archiving files.
protected CreateArchiveMutex ( ) : Mutex
Résultat Mutex

Flush() public méthode

Flushes this instance.
public Flush ( ) : void
Résultat void

GetFileCreationTimeUtc() public méthode

Gets the creation time for a file associated with the appender. The time returned is in Coordinated Universal Time [UTC] standard.
public GetFileCreationTimeUtc ( ) : DateTime?
Résultat DateTime?

GetFileLastWriteTimeUtc() public méthode

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?
Résultat DateTime?

GetFileLength() public méthode

Gets the length in bytes of the file associated with the appeander.
public GetFileLength ( ) : long?
Résultat long?

RetryingMultiProcessFileAppender() public méthode

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.
Résultat System

Write() public méthode

Writes the specified bytes.
public Write ( byte bytes ) : void
bytes byte The bytes.
Résultat void

Property Details

TheFactory public_oe static_oe property

public static IFileAppenderFactory TheFactory
Résultat IFileAppenderFactory