2017-03-17 13:12:34 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Net.Http;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2017-03-30 15:05:19 +02:00
|
|
|
|
namespace Microsoft.eShopOnContainers.BuildingBlocks.Resilience.HttpResilience
|
2017-03-17 13:12:34 +01:00
|
|
|
|
{
|
|
|
|
|
public interface IHttpClient
|
|
|
|
|
{
|
|
|
|
|
HttpClient Inst { get; }
|
|
|
|
|
Task<string> GetStringAsync(string uri);
|
|
|
|
|
Task<HttpResponseMessage> PostAsync<T>(string uri, T item);
|
|
|
|
|
Task<HttpResponseMessage> DeleteAsync(string uri);
|
|
|
|
|
}
|
|
|
|
|
}
|