HttpHandler
Http Handler implementation using System.Net.Http.HttpClient.
Summary
Clear cached responses from requests called with Post/GetWithCacheAsync.
Make post request with data converted to json asynchronously.
Make post request with data converted to json asynchronously.
Make post request with data converted to json asynchronously. Response is cached based on input (url, data)
Make post request with data converted to json asynchronously. Response is cached based on input (url, data)
Make get request asynchronously.
Make get request asynchronously.
Generic http request sent asynchronously.
Generic http request sent asynchronously.
Upsert response data in the data store.
Calculate request unique hash key.
Convert response to stream.
Convert stream to a string.
Generic method to convert a stream with json data to any type.
Build json request data from object data.
Members
Clear cached responses from requests called with Post/GetWithCacheAsync.
Make post request with data converted to json asynchronously.
Parameters
TResponseData
Response type
Parameters
url
Url to send the requestdata
data sent in the body
Returns
Response data deserialized to type TResponseData
Make post request with data converted to json asynchronously.
Parameters
TResponseData
Response type
Parameters
url
Url to send the requestdata
data sent in the bodycancellationToken
Notification that operation should be canceled
Returns
Response data deserialized to type TResponseData
Make post request with data converted to json asynchronously. Response is cached based on input (url, data)
Parameters
TResponseData
Response type
Parameters
url
Url to send the requestdata
data sent in the bodyreload
ignore cached value and make a request caching the result
Returns
Response data deserialized to type TResponseData
Make post request with data converted to json asynchronously. Response is cached based on input (url, data)
Parameters
TResponseData
Response type
Parameters
url
Url to send the requestdata
data sent in the bodycancellationToken
Notification that operation should be canceledreload
ignore cached value and make a request caching the result
Returns
Response data deserialized to type TResponseData
Make get request asynchronously.
Parameters
TResponseData
Response type
Parameters
url
Url to send the request
Returns
Response data deserialized to type TResponseData
Make get request asynchronously.
Parameters
TResponseData
Response type
Parameters
url
Url to send the requestcancellationToken
Notification that operation should be canceled
Returns
Response data deserialized to type TResponseData
Generic http request sent asynchronously.
Parameters
request
request body
Returns
Stream with response
Generic http request sent asynchronously.
Parameters
request
request body
///
Parameters
cancellationToken
Notification that operation should be canceled
Returns
Stream with response
Upsert response data in the data store.
Parameters
TResponseData
response data type
Parameters
hashKey
data keyresponseData
response data
Calculate request unique hash key.
Parameters
url
Url to send the requestdata
data sent in the body
Returns
Convert response to stream.
Parameters
response
response object
Returns
Stream with response
Convert stream to a string.
Parameters
stream
Returns
Generic method to convert a stream with json data to any type.
Parameters
TData
type to convert
Parameters
stream
stream with json content
Returns
TData object
Build json request data from object data.
Parameters
url
Url to send the requestdata
object data
Returns
request message
Last updated