C# Class NLog.Internal.TimeoutContinuation

Wraps Action[Exception] with a timeout.
Inheritance: IDisposable
Afficher le fichier Open project: shiftkey/winrt-backport-hilarity

Méthodes publiques

Méthode Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Function ( Exception exception ) : void

Continuation function which implements the timeout logic.

TimeoutContinuation ( AsyncContinuation asyncContinuation, System.TimeSpan timeout ) : System

Initializes a new instance of the TimeoutContinuation class.

Private Methods

Méthode Description
ReportExceptionInHandler ( Exception exception ) : void
StopTimer ( ) : void
TimerElapsed ( object state ) : void

Method Details

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Function() public méthode

Continuation function which implements the timeout logic.
public Function ( Exception exception ) : void
exception System.Exception The exception.
Résultat void

TimeoutContinuation() public méthode

Initializes a new instance of the TimeoutContinuation class.
public TimeoutContinuation ( AsyncContinuation asyncContinuation, System.TimeSpan timeout ) : System
asyncContinuation AsyncContinuation The asynchronous continuation.
timeout System.TimeSpan The timeout.
Résultat System