Свойство | Type | Description | |
---|---|---|---|
Empty |
Méthode | Description | |
---|---|---|
AllocateAppender ( string fileName ) : |
It allocates the first slot in the list when the file name does not already in the list and clean up any unused slots.
|
|
CloseAppenders ( ) : void |
Close all the allocated appenders.
|
|
CloseAppenders ( System.DateTime expireTime ) : void |
Close the allocated appenders initialised before the supplied time.
|
|
Dispose ( ) : void | ||
FileAppenderCache ( int size, IFileAppenderFactory appenderFactory, ICreateFileParameters createFileParams ) : System |
Initializes a new instance of the FileAppenderCache class. The size of the list should be positive. No validations are performed during initialisation as it is an intenal class. |
|
FlushAppenders ( ) : void |
Fluch all the allocated appenders.
|
|
GetArchiveMutex ( string fileName ) : Mutex | ||
GetFileCreationTimeUtc ( string filePath, bool fallback ) : DateTime? | ||
GetFileLastWriteTimeUtc ( string filePath, bool fallback ) : DateTime? | ||
GetFileLength ( string filePath, bool fallback ) : long? | ||
InvalidateAppender ( string filePath ) : void |
Closes the specified appender and removes it from the list.
|
|
InvalidateAppendersForInvalidFiles ( ) : void |
Invalidates appenders for all files that were archived.
|
Méthode | Description | |
---|---|---|
CloseAppender ( |
||
ExternalFileArchivingWatcher_OnFileChanged ( object sender, FileSystemEventArgs e ) : void | ||
FileAppenderCache ( ) : System |
Initializes a new "empty" instance of the FileAppenderCache class with zero size and empty list of appenders.
|
|
GetAppender ( string fileName ) : |
public AllocateAppender ( string fileName ) : |
||
fileName | string | File name associated with a single appender. |
Résultat |
public CloseAppenders ( System.DateTime expireTime ) : void | ||
expireTime | System.DateTime | The time which prior the appenders considered expired |
Résultat | void |
public FileAppenderCache ( int size, IFileAppenderFactory appenderFactory, ICreateFileParameters createFileParams ) : System | ||
size | int | Total number of appenders allowed in list. |
appenderFactory | IFileAppenderFactory | Factory used to create each appender. |
createFileParams | ICreateFileParameters | Parameters used for creating a file. |
Résultat | System |
public GetArchiveMutex ( string fileName ) : Mutex | ||
fileName | string | |
Résultat | Mutex |
public GetFileCreationTimeUtc ( string filePath, bool fallback ) : DateTime? | ||
filePath | string | |
fallback | bool | |
Résultat | DateTime? |
public GetFileLastWriteTimeUtc ( string filePath, bool fallback ) : DateTime? | ||
filePath | string | |
fallback | bool | |
Résultat | DateTime? |
public GetFileLength ( string filePath, bool fallback ) : long? | ||
filePath | string | |
fallback | bool | |
Résultat | long? |
public InvalidateAppender ( string filePath ) : void | ||
filePath | string | File name of the appender to be closed. |
Résultat | void |
public InvalidateAppendersForInvalidFiles ( ) : void | ||
Résultat | void |