Initial Commit ...
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user