C# 클래스 NLog.Targets.Wrappers.AsyncTargetWrapper

상속: NLog.Targets.Wrappers.WrapperTargetBase
파일 보기 프로젝트 열기: shiftkey/winrt-backport-hilarity 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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

메소드 상세

AsyncTargetWrapper() 공개 메소드

Initializes a new instance of the AsyncTargetWrapper class.
public AsyncTargetWrapper ( ) : System
리턴 System

AsyncTargetWrapper() 공개 메소드

Initializes a new instance of the AsyncTargetWrapper class.
public AsyncTargetWrapper ( NLog.Target wrappedTarget ) : System
wrappedTarget NLog.Target The wrapped target.
리턴 System

AsyncTargetWrapper() 공개 메소드

Initializes a new instance of the AsyncTargetWrapper class.
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

CloseTarget() 보호된 메소드

Shuts down the lazy writer timer.
protected CloseTarget ( ) : void
리턴 void

FlushAsync() 보호된 메소드

Waits for the lazy writer thread to finish writing messages.
protected FlushAsync ( AsyncContinuation asyncContinuation ) : void
asyncContinuation AsyncContinuation The asynchronous continuation.
리턴 void

InitializeTarget() 보호된 메소드

Initializes the target by starting the lazy writer timer.
protected InitializeTarget ( ) : void
리턴 void

StartLazyWriterTimer() 보호된 메소드

Starts the lazy writer thread which periodically writes queued log messages.
protected StartLazyWriterTimer ( ) : void
리턴 void

StopLazyWriterThread() 보호된 메소드

Starts the lazy writer thread.
protected StopLazyWriterThread ( ) : void
리턴 void

Write() 보호된 메소드

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.
protected Write ( AsyncLogEventInfo logEvent ) : void
logEvent AsyncLogEventInfo The log event.
리턴 void