KS.Reactor.ksAsyncResult< T > Class Template Reference

Handles the tracking and response handling for asynchronous cluster requests. More...

Inheritance diagram for KS.Reactor.ksAsyncResult< T >:

Protected Attributes

ManualResetEvent m_waitHandle
 
bool m_completedSynchronously
 
bool m_isCompleted
 
string m_error
 

Properties

object AsyncState [get, set]
 User state object. More...
 
WaitHandle AsyncWaitHandle [get]
 Wait Handle. More...
 
bool CompletedSynchronously [get]
 Was the request completed immediately. More...
 
bool IsCompleted [get]
 Is the request complete. More...
 
string Error [get]
 Error message. More...
 
ksAsyncResultHandler OnComplete [get, set]
 Callback to call when the task completes. More...
 
new ksAsyncResultHandler< T > OnComplete [get, set]
 Callback to call when the task completes. More...
 
Result [get]
 Results. More...
 

Detailed Description

Handles the tracking and response handling for asynchronous cluster requests.

Handles the tracking and response handling for asynchronous cluster requests that return results.

Template Parameters
T
Type Constraints
T :class 

Property Documentation

◆ AsyncState

object KS.Reactor.ksAsyncResult< T >.AsyncState
getset

User state object.

◆ AsyncWaitHandle

WaitHandle KS.Reactor.ksAsyncResult< T >.AsyncWaitHandle
get

Wait Handle.

◆ CompletedSynchronously

bool KS.Reactor.ksAsyncResult< T >.CompletedSynchronously
get

Was the request completed immediately.

◆ Error

string KS.Reactor.ksAsyncResult< T >.Error
get

Error message.

◆ IsCompleted

bool KS.Reactor.ksAsyncResult< T >.IsCompleted
get

Is the request complete.

◆ OnComplete [1/2]

Callback to call when the task completes.

◆ OnComplete [2/2]

new ksAsyncResultHandler<T> KS.Reactor.ksAsyncResult< T >.OnComplete
getset

Callback to call when the task completes.

◆ Result

T KS.Reactor.ksAsyncResult< T >.Result
get

Results.