28 lines
845 B
C#
28 lines
845 B
C#
using System.Collections.Generic;
|
|
using System.Net.Http;
|
|
using System.Threading.Tasks;
|
|
using RestSharp;
|
|
using xHttpService.Constants;
|
|
using xIdentityModels.Models;
|
|
|
|
namespace xHttpService.Interfaces {
|
|
public partial interface IXHttpProvider {
|
|
HttpClient GetHttpClient ();
|
|
RestClient GetRestClient (
|
|
string baseUrl = null,
|
|
string poweredByValue = null,
|
|
XTokenResponse tokens = null
|
|
);
|
|
RestRequest GetRestRequet (
|
|
string endpoint,
|
|
IDictionary<string, string> @params = null,
|
|
IDictionary<string, string> headers = null,
|
|
IDictionary<string, string> queryStrings = null
|
|
);
|
|
Task<T> RunRestRequest<T> (
|
|
RestClient client,
|
|
RestRequest request,
|
|
XHttpMethod method
|
|
);
|
|
}
|
|
} |