Represents results from asynchronous table scan operations.

Namespace: Hypertable
Assembly: ht4n (in ht4n.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class AsyncResult : IAsyncResult, 
	IDisposable
Public Class AsyncResult _
	Implements IAsyncResult, IDisposable
public ref class AsyncResult : IAsyncResult, 
	IDisposable

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
AsyncResult()()()()
Initializes a new instance of the AsyncResult class.
AsyncResult(AsyncScannerCallback)
Initializes a new instance of the AsyncResult class using the specified AsyncScannerCallback.
AsyncState
Gets a user-defined object that qualifies or contains information about an asynchronous operation.
AsyncWaitHandle
Gets a WaitHandle that is used to wait for an asynchronous operation to complete.
Cancel()()()()
Cancels any outstanding asynchronous operations.
CancelAsyncMutator(AsyncMutatorContext)
Cancels an asynchronous mutator.
CancelAsyncScanner(AsyncScannerContext)
Cancels an asynchronous scanner.
CompletedSynchronously
Gets a value that indicates whether the asynchronous operation completed synchronously.
Dispose()()()()
Clean up all managed and unmanaged resources.
Dispose(Boolean)
Releases the unmanaged resources used by the AsyncResult and optionally releases the managed resources
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Error
Gets a value indicating which error occurred during an asynchronous operation.
Finalize()()()()
Clean up all unmanaged resources.
(Overrides Object..::..Finalize()()()().)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
IsCancelled
Gets a value that indicates whether the asynchronous operation has cancelled.
IsCompleted
Gets a value that indicates whether the asynchronous operation has completed.
IsDisposed
Gets a value indicating whether the object has been disposed.
Join()()()()
Blocks the calling thread until the asynchronous operation has completed.
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ScannerCallback
Gets the scanner callback.
ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)

Examples

The following example shows how to scan a multiple tables asynchronously.
CopyC#
using( var asynResult = new AsyncResult(
   delegate( AsyncScannerContext asyncScannerContext, IList<Cell> cells ) {
      // process cells
      return true; // continue, return false to cancel
   }) ) {
   tableA.BeginScan(new ScanSpec().AddColumn("a"), asynResult);
   tableB.BeginScan(new ScanSpec().AddColumn("b"), asynResult);
   asynResult.Join();
 }

Inheritance Hierarchy

System..::..Object
  Hypertable..::..AsyncResult
    Hypertable..::..BlockingAsyncResult

See Also