C# Class GS.Common.IO.AsyncJob

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

Public Methods

Method 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

Method Description
completionCallback ( uint errorCode, uint numBytes, NativeOverlapped pOVERLAP ) : void

Method Details

AsyncJob() public method

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.
return System

CompleteSynchronously() public method

public CompleteSynchronously ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

WaitForCompletion() public method

public WaitForCompletion ( ) : void
return void