Свойство | Тип | Описание | |
---|---|---|---|
ProcessPendingEvents | void |
Метод | Описание | |
---|---|---|
AsyncTargetWrapper ( ) : System |
Initializes a new instance of the AsyncTargetWrapper class.
|
|
AsyncTargetWrapper ( NLog.Target wrappedTarget ) : System |
Initializes a new instance of the AsyncTargetWrapper class.
|
|
AsyncTargetWrapper ( NLog.Target wrappedTarget, int queueLimit, AsyncTargetWrapperOverflowAction overflowAction ) : System |
Initializes a new instance of the AsyncTargetWrapper class.
|
Метод | Описание | |
---|---|---|
CloseTarget ( ) : void |
Shuts down the lazy writer timer.
|
|
FlushAsync ( AsyncContinuation asyncContinuation ) : void |
Waits for the lazy writer thread to finish writing messages.
|
|
InitializeTarget ( ) : void |
Initializes the target by starting the lazy writer timer.
|
|
StartLazyWriterTimer ( ) : void |
Starts the lazy writer thread which periodically writes queued log messages.
|
|
StopLazyWriterThread ( ) : void |
Starts the lazy writer thread.
|
|
Write ( AsyncLogEventInfo logEvent ) : void |
Adds the log event to asynchronous queue to be processed by the lazy writer thread. The Target.PrecalculateVolatileLayouts is called to ensure that the log event can be processed in another thread. |
Метод | Описание | |
---|---|---|
ProcessPendingEvents ( object state ) : void |
public AsyncTargetWrapper ( NLog.Target wrappedTarget ) : System | ||
wrappedTarget | NLog.Target | The wrapped target. |
Результат | System |
public AsyncTargetWrapper ( NLog.Target wrappedTarget, int queueLimit, AsyncTargetWrapperOverflowAction overflowAction ) : System | ||
wrappedTarget | NLog.Target | The wrapped target. |
queueLimit | int | Maximum number of requests in the queue. |
overflowAction | AsyncTargetWrapperOverflowAction | The action to be taken when the queue overflows. |
Результат | System |
protected FlushAsync ( AsyncContinuation asyncContinuation ) : void | ||
asyncContinuation | AsyncContinuation | The asynchronous continuation. |
Результат | void |
protected Write ( AsyncLogEventInfo logEvent ) : void | ||
logEvent | AsyncLogEventInfo | The log event. |
Результат | void |