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

26 lines
855 B
C#
Raw Normal View History

using DamageAssesment.Api.SurveyResponses.Interfaces;
namespace DamageAssesment.Api.SurveyResponses.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
}
}
}