Property | Type | Description | |
---|---|---|---|
Empty |
Method | 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.
|
Method | 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. |
return |
public CloseAppenders ( System.DateTime expireTime ) : void | ||
expireTime | System.DateTime | The time which prior the appenders considered expired |
return | 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. |
return | System |
public GetArchiveMutex ( string fileName ) : Mutex | ||
fileName | string | |
return | Mutex |
public GetFileCreationTimeUtc ( string filePath, bool fallback ) : DateTime? | ||
filePath | string | |
fallback | bool | |
return | DateTime? |
public GetFileLastWriteTimeUtc ( string filePath, bool fallback ) : DateTime? | ||
filePath | string | |
fallback | bool | |
return | DateTime? |
public GetFileLength ( string filePath, bool fallback ) : long? | ||
filePath | string | |
fallback | bool | |
return | long? |
public InvalidateAppender ( string filePath ) : void | ||
filePath | string | File name of the appender to be closed. |
return | void |
public InvalidateAppendersForInvalidFiles ( ) : void | ||
return | void |