Elib 0.7
C# library for e-Puck robot

Elib.AsyncResultNoResult Class Reference

Class used in System.IAsyncResult for example in Epuck.EndFtion It does not allow to return an answer. More...

Inheritance diagram for Elib.AsyncResultNoResult:
Elib.AsyncResult< TResult >

List of all members.

Public Member Functions

 AsyncResultNoResult (AsyncCallback asyncCallback, Object state, string name_)
 Initializes a new instance of the AsyncResultNoResult class.
 AsyncResultNoResult (AsyncCallback asyncCallback, Object state)
 Initializes a new instance of the AsyncResultNoResult class.
void SetAsCompleted (Exception exception, Boolean completedSynchronously)
 Used for signalling, that an exception has been thrown during waiting to end of operation.
void EndInvoke ()
 Synchronously wait until the operation is pending.

Properties

string Name [get, set]
 Gets or sets the name. It allows easy debugging and determine, which command is using T:AsyncResultNoResult
Object AsyncState [get]
 Gets a user-defined object that qualifies or contains information about an asynchronous operation.
Boolean CompletedSynchronously [get]
 Gets an indication of whether the asynchronous operation completed synchronously.
WaitHandle AsyncWaitHandle [get]
 Gets a T:System.Threading.WaitHandle that is used to wait for an asynchronous operation to complete.
Boolean IsCompleted [get]
 Gets an indication whether the asynchronous operation has completed.

Detailed Description

Class used in System.IAsyncResult for example in Epuck.EndFtion It does not allow to return an answer.


Constructor & Destructor Documentation

Elib.AsyncResultNoResult.AsyncResultNoResult ( AsyncCallback  asyncCallback,
Object  state,
string  name_ 
)

Initializes a new instance of the AsyncResultNoResult class.

Parameters:
asyncCallbackThe async callback.
stateThe state.
name_The name_.
Elib.AsyncResultNoResult.AsyncResultNoResult ( AsyncCallback  asyncCallback,
Object  state 
)

Initializes a new instance of the AsyncResultNoResult class.

Parameters:
asyncCallbackThe async callback.
stateThe state.

Member Function Documentation

void Elib.AsyncResultNoResult.EndInvoke ( )

Synchronously wait until the operation is pending.

Reimplemented in Elib.AsyncResult< TResult >.

void Elib.AsyncResultNoResult.SetAsCompleted ( Exception  exception,
Boolean  completedSynchronously 
)

Used for signalling, that an exception has been thrown during waiting to end of operation.

Parameters:
exceptionThe exception.
completedSynchronouslyif set to true [completed synchronously].

Property Documentation

Object Elib.AsyncResultNoResult.AsyncState [get]

Gets a user-defined object that qualifies or contains information about an asynchronous operation.

Returns:
A user-defined object that qualifies or contains information about an asynchronous operation.
WaitHandle Elib.AsyncResultNoResult.AsyncWaitHandle [get]

Gets a T:System.Threading.WaitHandle that is used to wait for an asynchronous operation to complete.

Returns:
A T:System.Threading.WaitHandle that is used to wait for an asynchronous operation to complete.
Boolean Elib.AsyncResultNoResult.CompletedSynchronously [get]

Gets an indication of whether the asynchronous operation completed synchronously.

Returns:
true if the asynchronous operation completed synchronously; otherwise, false.
Boolean Elib.AsyncResultNoResult.IsCompleted [get]

Gets an indication whether the asynchronous operation has completed.

Returns:
true if the operation is complete; otherwise, false.
string Elib.AsyncResultNoResult.Name [get, set]

Gets or sets the name. It allows easy debugging and determine, which command is using T:AsyncResultNoResult

The name of function, which called the 'Begin' function.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events