Class DeviceAsyncResult
An asynchronous result object
Inheritance
Implements
Inherited Members
Namespace: Eclo.nF.SIM800H
Assembly: cs.temp.dll.dll
Syntax
public class DeviceAsyncResult : IAsyncResult
Constructors
DeviceAsyncResult(AsyncCallback, Object)
Creates an AsyncResult
Declaration
public DeviceAsyncResult(AsyncCallback asyncCallback = null, object asyncState = null)
Parameters
Type | Name | Description |
---|---|---|
System.AsyncCallback | asyncCallback | The callback to be invoked upon completion, optional |
System.Object | asyncState | The state object to be stored against this AsyncResult, optional |
Properties
AsyncState
The state object stored against this AsyncResult
Declaration
public object AsyncState { get; }
Property Value
Type | Description |
---|---|
System.Object |
AsyncWaitHandle
The WaitHandle for this AsyncResult
Declaration
public WaitHandle AsyncWaitHandle { get; }
Property Value
Type | Description |
---|---|
WaitHandle |
CompletedSynchronously
Returns true
if this AsyncResult has been completed synchronously
Declaration
public bool CompletedSynchronously { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsCompleted
Returns true
if this AsyncResult has been completed
Declaration
public bool IsCompleted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Complete(Exception, Boolean)
Called when the asynchronous processing has been completed
Declaration
protected bool Complete(Exception exception = null, bool completedSynchronously = false)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception generated while processing, optional |
System.Boolean | completedSynchronously |
|
Returns
Type | Description |
---|---|
System.Boolean | Returns |
End()
Finishes the asynchronous processing and throws an exception if one was generated
Declaration
public void End()
Process()
The method used to perform the asynchronous processing
Declaration
public virtual void Process()