17 lines
418 B
C#
17 lines
418 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Net.Http;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace WebMVC.Services.Utilities
|
|||
|
{
|
|||
|
public interface IHttpClient
|
|||
|
{
|
|||
|
HttpClient Inst { get; }
|
|||
|
Task<string> GetStringAsync(string uri);
|
|||
|
Task<HttpResponseMessage> PostAsync<T>(string uri, T item);
|
|||
|
Task<HttpResponseMessage> DeleteAsync(string uri);
|
|||
|
}
|
|||
|
}
|