C# Class NLog.Internal.FileAppenders.BaseMutexFileAppender

Inheritance: BaseFileAppender
Exibir arquivo Open project: NLog/NLog

Public Methods

Method Description
BaseMutexFileAppender ( string fileName, ICreateFileParameters createParameters ) : System

Initializes a new instance of the BaseMutexFileAppender class.

Protected Methods

Method Description
CreateArchiveMutex ( ) : Mutex

Creates a mutually-exclusive lock for archiving files.

CreateSharableArchiveMutex ( ) : Mutex

Creates a mutex for archiving that is sharable by more than one process.

CreateSharableMutex ( string mutexNamePrefix ) : Mutex

Creates a mutex that is sharable by more than one process.

Private Methods

Method Description
GetMutexName ( string mutexNamePrefix ) : string

Method Details

BaseMutexFileAppender() public method

Initializes a new instance of the BaseMutexFileAppender class.
public BaseMutexFileAppender ( string fileName, ICreateFileParameters createParameters ) : System
fileName string Name of the file.
createParameters ICreateFileParameters The create parameters.
return System

CreateArchiveMutex() protected method

Creates a mutually-exclusive lock for archiving files.
protected CreateArchiveMutex ( ) : Mutex
return System.Threading.Mutex

CreateSharableArchiveMutex() protected method

Creates a mutex for archiving that is sharable by more than one process.
protected CreateSharableArchiveMutex ( ) : Mutex
return System.Threading.Mutex

CreateSharableMutex() protected method

Creates a mutex that is sharable by more than one process.
protected CreateSharableMutex ( string mutexNamePrefix ) : Mutex
mutexNamePrefix string The prefix to use for the name of the mutex.
return System.Threading.Mutex