Method DoAction
DoAction<T>(HttpResponseMessage, Func<T>)
Declaration
protected virtual T DoAction<T>(HttpResponseMessage response, Func<T> call)
Parameters
Type |
Name |
Description |
HttpResponseMessage |
response |
|
Func<T> |
call |
|
Returns
Type Parameters
DoAction<T>(HttpResponseMessage, Boolean, Func<T>)
Do a specific action and validate after the action that the status is still OK,
and if not, attempt to extract the actual server side exception. Optionally
release the response at exit, depending on consume
parameter.
Declaration
protected virtual T DoAction<T>(HttpResponseMessage response, bool consume, Func<T> call)
Parameters
Type |
Name |
Description |
HttpResponseMessage |
response |
|
System.Boolean |
consume |
|
Func<T> |
call |
|
Returns
Type Parameters