Elib 0.7
C# library for e-Puck robot

Elib.AsyncResult< TResult > Class Template Reference

Class used in System.IAsyncResult when the "End" function returns an answer. E.g M:Epuck.EndGetFtion(IAsyncResult). More...

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

List of all members.

Public Member Functions

 AsyncResult (AsyncCallback asyncCallback, Object state, string name)
 Initializes a new instance of the AsyncResult&lt;TResult&gt; class.
 AsyncResult (AsyncCallback asyncCallback, Object state)
 Initializes a new instance of the AsyncResult&lt;TResult&gt; class.
void SetAsCompleted (TResult result, Boolean completedSynchronously)
 Sets a result or an Exception.
void SetAsCompleted (TResult result, Boolean completedSynchronously, Exception exception)
 Sets as completed. Added for M:BeginGetImage(IAsyncResult). Allows to set both the exception and the result if there is any.
new TResult EndInvoke ()
 M:AsyncResultNoResult.EndInvoke()

Detailed Description

template<TResult>
class Elib::AsyncResult< TResult >

Class used in System.IAsyncResult when the "End" function returns an answer. E.g M:Epuck.EndGetFtion(IAsyncResult).

Template Parameters:
TResultThe type of the result.

Member Function Documentation

template<TResult >
Elib.AsyncResult< TResult >.AsyncResult ( AsyncCallback  asyncCallback,
Object  state,
string  name 
)

Initializes a new instance of the AsyncResult&lt;TResult&gt; class.

Parameters:
asyncCallbackThe async callback.
stateThe state.
nameThe name.
template<TResult >
Elib.AsyncResult< TResult >.AsyncResult ( AsyncCallback  asyncCallback,
Object  state 
)

Initializes a new instance of the AsyncResult&lt;TResult&gt; class.

Parameters:
asyncCallbackThe async callback.
stateThe state.
template<TResult >
new TResult Elib.AsyncResult< TResult >.EndInvoke ( )

M:AsyncResultNoResult.EndInvoke()

Returns:
Returns the desired value

Reimplemented from Elib.AsyncResultNoResult.

template<TResult >
void Elib.AsyncResult< TResult >.SetAsCompleted ( TResult  result,
Boolean  completedSynchronously 
)

Sets a result or an Exception.

Parameters:
resultThe result.
completedSynchronouslyif set to true [completed synchronously].
template<TResult >
void Elib.AsyncResult< TResult >.SetAsCompleted ( TResult  result,
Boolean  completedSynchronously,
Exception  exception 
)

Sets as completed. Added for M:BeginGetImage(IAsyncResult). Allows to set both the exception and the result if there is any.

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

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