Class ApiService
Inheritance
System.Object
ApiService
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class ApiService : Object, IApiService
Constructors
ApiService(IServiceProvider, IHttpContextAccessor)
Declaration
public ApiService(IServiceProvider serviceProvider, IHttpContextAccessor contextAccessor)
Parameters
Type |
Name |
Description |
System.IServiceProvider |
serviceProvider |
|
Microsoft.AspNetCore.Http.IHttpContextAccessor |
contextAccessor |
|
Methods
Post(String, Object)
Declaration
public Task Post(string endpoint, object request)
Parameters
Type |
Name |
Description |
System.String |
endpoint |
|
System.Object |
request |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Post<TResult>(String, Object, KeyValuePair<String, String>[])
Declaration
public Task<TResult> Post<TResult>(string endpoint, object request, KeyValuePair<string, string>[] customHeaders)
Parameters
Type |
Name |
Description |
System.String |
endpoint |
|
System.Object |
request |
|
System.Collections.Generic.KeyValuePair<System.String, System.String>[] |
customHeaders |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TResult> |
|
Type Parameters
Implements