12 lines
497 B
C#
12 lines
497 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace Microservice.Common
|
|
{
|
|
public interface IServiceClient
|
|
{
|
|
Task<TResponse> GetAsync<TResponse>(string serviceName, string endpoint, object queryParams = null);
|
|
Task<TResponse> PostAsync<TResponse>(string serviceName, string endpoint, object data);
|
|
Task<TResponse> PutAsync<TResponse>(string serviceName, string endpoint, object data);
|
|
Task<TResponse> DeleteAsync<TResponse>(string serviceName, string endpoint);
|
|
}
|
|
} |