示例#1
0
 public ProjectAdoServices(
     IConfiguration configuration,
     IMapper mapper,
     IProcessAdoServices processAdoServices,
     ILogger <ProjectAdoServices> logger = null
     )
 {
     _mapper             = mapper;
     _processAdoServices = processAdoServices;
     _logger             = logger;
     _adoConfig          = configuration.GetSection(nameof(AdoConfig)).Get <AdoConfig>();
 }
示例#2
0
 public ProcessAdoServices(
     IConfiguration configuration,
     IMapper mapper,
     ICacheProvider cacheProvider,
     IHttpClientFactory httpClientFactory,
     ILogger <ProcessAdoServices> logger = null)
 {
     _mapper            = mapper;
     _cacheProvider     = cacheProvider;
     _httpClientFactory = httpClientFactory;
     _logger            = logger;
     _adoConfig         = configuration.GetSection(nameof(AdoConfig)).Get <AdoConfig>();
     DefAdoOrganization = configuration.GetValue <string>("DefAdoOrganization");
 }