WebApiClient T  GetOneAsync Method (Object, String, CancellationToken)The WebApiClient Documentation
Returns a Task that will yield an object of the specified type T from the Web Api

Namespace: WebApiRestService
Assembly: WebApiClient (in WebApiClient.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public virtual Task<T> GetOneAsync(
	Object param,
	string action,
	CancellationToken token
)

Parameters

param
Type: System Object
Can be a simple type like int, string, etc or an anonymous type defining many properties
action
Type: System String
Explicit define the action that will be called
token
Type: System.Threading CancellationToken
The CancellationToken to be used to cancel the call

Return Value

Type: Task T 
Exceptions
ExceptionCondition
WebApiClientException
ArgumentNullException
Remarks
Requests are sent using HttpVerb GET
See Also