DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Responses/Services/ServiceProviderBase.cs

26 lines
843 B
C#
Raw Permalink Normal View History

2023-10-04 17:45:51 -05:00
using DamageAssesment.Api.Responses.Interfaces;
2023-10-04 17:45:51 -05:00
namespace DamageAssesment.Api.Responses.Services
2023-08-15 22:52:30 -05:00
{
public class ServiceProviderBase
{
protected readonly IConfiguration configuration;
protected readonly IHttpUtil httpUtil;
protected readonly ILogger<ServiceProviderBase> logger;
2023-08-15 22:52:30 -05:00
protected string ressource;
protected string urlBase;
protected string url;
2023-08-15 22:52:30 -05:00
public ServiceProviderBase(IConfiguration configuration, IHttpUtil httpUtil, ILogger<ServiceProviderBase> logger, string ressource, string urlBase)
2023-08-15 22:52:30 -05:00
{
this.configuration = configuration;
this.httpUtil = httpUtil;
2023-08-15 22:52:30 -05:00
this.logger = logger;
this.ressource = ressource;
this.urlBase = urlBase;
url = urlBase + ressource;
2023-08-15 22:52:30 -05:00
}
}
}