using RestSharp;
using System.Threading;
using System.Threading.Tasks;
using xHttpService.Constants;
using xIdentityService.Models;
using xHttpService.Interfaces;
using System.Collections.Generic;
namespace xIdentityService.Interfaces
{
public partial interface IXIdentityHttpProvider : IXHttpProvider
{
///
/// Get an Instance of RestRequest ...
///
///
///
///
///
///
///
RestRequest GetRestRequest(
string endpoint,
bool addXPoweredValue = true,
IDictionary @params = null,
IDictionary headers = null,
IDictionary queryStrings = null
);
///
/// Handle Call Specific Request and retrieve Response
///
///
///
///
///
///
///
///
Task RunRestRequest(
RestClient client,
RestRequest request,
XHttpMethod method,
bool supportRefreshingTokens = true,
CancellationToken cancellationToken = default
);
Task> RunRestRequestByResponse(
RestClient client,
RestRequest request,
XHttpMethod method,
bool supportRefreshingTokens = true,
CancellationToken cancellationToken = default
);
}
}