Method GetResult
GetResult()
Blocking call that waits until server returns the result in form of completion, failure or cancellation of a task.
Declaration
public ITaskResult GetResult()
Returns
Type | Description |
---|---|
ITaskResult | Returns an ITaskResult instance |
GetResult(Int32)
If no result is obtained within the provided timeout, Operationfailedexception will be thrown.
Declaration
public ITaskResult GetResult(int timeout)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | timeout | Time in millisecond in which if result is not returned, thread will be terminated and exception or null will be given |
Returns
Type | Description |
---|---|
ITaskResult | Returns an ITaskResult instance |