Class RemoteServiceBase
- Namespace
- Oqtane.Services
- Assembly
- Oqtane.Client.dll
public class RemoteServiceBase
- Inheritance
-
object
RemoteServiceBase
Constructors
RemoteServiceBase(IHttpClientFactory, SiteState)
protected RemoteServiceBase(IHttpClientFactory httpClientFactory, SiteState siteState)
Parameters
httpClientFactory
IHttpClientFactory
siteState
SiteState
Methods
DeleteAsync(string)
protected Task DeleteAsync(string uri)
Parameters
uri
string
Returns
- Task
GetAsync(string)
protected Task GetAsync(string uri)
Parameters
uri
string
Returns
- Task
GetByteArrayAsync(string)
protected Task<byte[]> GetByteArrayAsync(string uri)
Parameters
uri
string
Returns
- Task<byte[]>
GetJsonAsync<T>(string)
protected Task<T> GetJsonAsync<T>(string uri)
Parameters
uri
string
Returns
- Task<T>
Type Parameters
T
GetStringAsync(string)
protected Task<string> GetStringAsync(string uri)
Parameters
uri
string
Returns
- Task<string>
PostAsync(string)
protected Task PostAsync(string uri)
Parameters
uri
string
Returns
- Task
PostJsonAsync<T>(string, T)
protected Task<T> PostJsonAsync<T>(string uri, T value)
Parameters
uri
string
value
T
Returns
- Task<T>
Type Parameters
T
PostJsonAsync<TValue, TResult>(string, TValue)
protected Task<TResult> PostJsonAsync<TValue, TResult>(string uri, TValue value)
Parameters
uri
string
value
TValue
Returns
- Task<TResult>
Type Parameters
TValue
TResult
PutAsync(string)
protected Task PutAsync(string uri)
Parameters
uri
string
Returns
- Task
PutJsonAsync<T>(string, T)
protected Task<T> PutJsonAsync<T>(string uri, T value)
Parameters
uri
string
value
T
Returns
- Task<T>
Type Parameters
T
PutJsonAsync<TValue, TResult>(string, TValue)
protected Task<TResult> PutJsonAsync<TValue, TResult>(string uri, TValue value)
Parameters
uri
string
value
TValue
Returns
- Task<TResult>
Type Parameters
TValue
TResult