C# Class GS.Common.IO.AsyncJob

Internal class, wraps Overlapped structure, completion port callback and IAsyncResult
Inheritance: IAsyncResult, IDisposable
Afficher le fichier Open project: Gainedge/BetterExplorer Class Usage Examples

Méthodes publiques

Méthode Description
AsyncJob ( AsyncCallback callback, object state, System.UInt64 fileOffset, object userData ) : System

Create instance, automatically allocates NativeOverlapped structure

CompleteSynchronously ( ) : void
Dispose ( ) : void
WaitForCompletion ( ) : void

Private Methods

Méthode Description
completionCallback ( uint errorCode, uint numBytes, NativeOverlapped pOVERLAP ) : void

Method Details

AsyncJob() public méthode

Create instance, automatically allocates NativeOverlapped structure
public AsyncJob ( AsyncCallback callback, object state, System.UInt64 fileOffset, object userData ) : System
callback AsyncCallback User specified callback
state object User specified state
fileOffset System.UInt64 Start position
userData object An object or array of objects representing the input or output buffer for the operation. Buffer is pinned until object is disposed.
Résultat System

CompleteSynchronously() public méthode

public CompleteSynchronously ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

WaitForCompletion() public méthode

public WaitForCompletion ( ) : void
Résultat void