An AsyncResult object when handling an asynchronous request.
More...
Inherits UnifiedAutomation.UaBase.AsyncResultBase, and UnifiedAutomation.UaBase.IEndpointIncomingRequest.
|
static IServiceResponse | WaitForComplete (IAsyncResult ar, bool throwOnError) |
| Checks for a valid IAsyncResult object and waits for the operation to complete.
|
|
static IServiceRequest | GetRequest (IAsyncResult ar) |
| Checks for a valid IAsyncResult object and returns the original request object.
|
|
static void | WaitForComplete (IAsyncResult ar) |
| Waits for the operation to complete.
|
|
|
override void | Dispose (bool disposing) |
| An overrideable version of the Dispose.
|
|
An AsyncResult object when handling an asynchronous request.
UnifiedAutomation.UaBase.EndpointBase.ProcessRequestAsyncResult.ProcessRequestAsyncResult |
( |
EndpointBase |
endpoint, |
|
|
AsyncCallback |
callback, |
|
|
object |
callbackData, |
|
|
int |
timeout |
|
) |
| |
Initializes a new instance of the ProcessRequestAsyncResult class.
- Parameters
-
endpoint | The endpoint being called. |
callback | The callback to use when the operation completes. |
callbackData | The callback data. |
timeout | The timeout in milliseconds |
IAsyncResult UnifiedAutomation.UaBase.EndpointBase.ProcessRequestAsyncResult.BeginProcessRequest |
( |
SecureChannelContext |
context, |
|
|
byte[] |
requestData |
|
) |
| |
Begins processing an incoming request.
- Parameters
-
context | The security context for the request |
requestData | The request data. |
- Returns
- The result object that is used to call the EndProcessRequest method.
Begins processing an incoming request.
- Parameters
-
context | The security context for the request |
request | The request. |
- Returns
- The result object that is used to call the EndProcessRequest method.
void UnifiedAutomation.UaBase.EndpointBase.ProcessRequestAsyncResult.CallSynchronously |
( |
| ) |
|
Used to call the default synchronous handler.
This method may block the current thread so the caller must not call in the thread that calls IServerBase.ScheduleIncomingRequest(). This method always traps any exceptions and reports them to the client as a fault.
override void UnifiedAutomation.UaBase.EndpointBase.ProcessRequestAsyncResult.Dispose |
( |
bool |
disposing | ) |
|
|
protectedvirtual |
static IServiceRequest UnifiedAutomation.UaBase.EndpointBase.ProcessRequestAsyncResult.GetRequest |
( |
IAsyncResult |
ar | ) |
|
|
static |
Checks for a valid IAsyncResult object and returns the original request object.
- Parameters
-
ar | The IAsyncResult object for the operation. |
- Returns
- The request object if available; otherwise null.
void UnifiedAutomation.UaBase.EndpointBase.ProcessRequestAsyncResult.OperationCompleted |
( |
IServiceResponse |
response, |
|
|
StatusCode |
error |
|
) |
| |
Used to indicate that the asynchronous operation has completed.
- Parameters
-
response | The response. May be null if an error is provided. |
error | |
static IServiceResponse UnifiedAutomation.UaBase.EndpointBase.ProcessRequestAsyncResult.WaitForComplete |
( |
IAsyncResult |
ar, |
|
|
bool |
throwOnError |
|
) |
| |
|
static |
Checks for a valid IAsyncResult object and waits for the operation to complete.
- Parameters
-
ar | The IAsyncResult object for the operation. |
throwOnError | if set to true an exception is thrown if an error occurred. |
- Returns
- The response.
IServiceRequest UnifiedAutomation.UaBase.EndpointBase.ProcessRequestAsyncResult.Request |
|
get |
Gets the request.
The request.
IServiceResponse UnifiedAutomation.UaBase.EndpointBase.ProcessRequestAsyncResult.Response |
|
getset |
Gets or sets the response.
The response.
SecureChannelContext UnifiedAutomation.UaBase.EndpointBase.ProcessRequestAsyncResult.SecureChannelContext |
|
get |
Gets the secure channel context associated with the request.
The secure channel context.
The documentation for this class was generated from the following file:
- C:/work/uasdknet/src/UaBase/Wcf/EndpointBase.cs