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

26 lines
843 B
C#
Raw Permalink Normal View History

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