public LmiOrchestrationTrigger(
            ILogger <LmiOrchestrationTrigger> logger,
            IMapper mapper,
            IContentTypeMappingService contentTypeMappingService,
            ICmsApiService cmsApiService,
            IDocumentService <JobGroupModel> jobGroupDocumentService,
            IEventGridService eventGridService,
            EventGridClientOptions eventGridClientOptions)
        {
            this.logger = logger;
            this.mapper = mapper;
            this.jobGroupDocumentService = jobGroupDocumentService;
            this.cmsApiService           = cmsApiService;
            this.jobGroupDocumentService = jobGroupDocumentService;
            this.eventGridService        = eventGridService;
            this.eventGridClientOptions  = eventGridClientOptions;

            contentTypeMappingService.AddMapping(nameof(LmiSocJobProfile), typeof(LmiSocJobProfile));
            contentTypeMappingService.AddMapping(nameof(LmiSocPredicted), typeof(LmiSocPredicted));
            contentTypeMappingService.AddMapping(nameof(LmiSocPredictedYear), typeof(LmiSocPredictedYear));
            contentTypeMappingService.AddMapping(nameof(LmiSocBreakdown), typeof(LmiSocBreakdown));
            contentTypeMappingService.AddMapping(nameof(LmiSocBreakdownYear), typeof(LmiSocBreakdownYear));
            contentTypeMappingService.AddMapping(nameof(LmiSocBreakdownYearValue), typeof(LmiSocBreakdownYearValue));

            //TODO: ian: need to initialize the telemetry properly
            Activity?activity = null;

            if (Activity.Current == null)
            {
                activity = new Activity(nameof(LmiWebhookHttpTrigger)).Start();
                activity.SetParentId(Guid.NewGuid().ToString());
            }
        }
 public CacheReloadService(
     ILogger <CacheReloadService> logger,
     IEventMessageService <CmsApiSharedContentModel> eventMessageService,
     ICmsApiService cmsApiService,
     IContentTypeMappingService contentTypeMappingService,
     IConfiguration config)
 {
     this.logger = logger;
     this.eventMessageService       = eventMessageService;
     this.cmsApiService             = cmsApiService;
     this.contentTypeMappingService = contentTypeMappingService;
     this.SharedContent             = config.GetValue <Guid>(Constants.SharedContentGuidConfig);
 }
 public SharedContentCacheReloadService(
     ILogger <SharedContentCacheReloadService> logger,
     IMapper mapper,
     IDocumentService <ContentItemModel> contentItemDocumentService,
     ICmsApiService cmsApiService,
     CmsApiClientOptions cmsApiClientOptions,
     IContentTypeMappingService contentTypeMappingService)
 {
     this.logger = logger;
     this.mapper = mapper;
     this.contentItemDocumentService = contentItemDocumentService;
     this.cmsApiService             = cmsApiService;
     this.cmsApiClientOptions       = cmsApiClientOptions;
     this.contentTypeMappingService = contentTypeMappingService;
 }
 public CmsApiService(
     CmsApiClientOptions cmsApiClientOptions,
     IApiDataProcessorService apiDataProcessorService,
     HttpClient httpClient,
     IMapper mapper,
     IApiCacheService apiCacheService,
     IContentTypeMappingService contentTypeMappingService)
 {
     this.cmsApiClientOptions     = cmsApiClientOptions;
     this.apiDataProcessorService = apiDataProcessorService;
     this.httpClient                = httpClient;
     this.mapper                    = mapper;
     this.apiCacheService           = apiCacheService;
     this.contentTypeMappingService = contentTypeMappingService;
 }
 public ConfigurationSetReloadService(
     ILogger <ConfigurationSetReloadService> logger,
     AutoMapper.IMapper mapper,
     IDocumentService <ConfigurationSetModel> configurationSetDocumentService,
     ICmsApiService cmsApiService,
     CmsApiClientOptions cmsApiClientOptions,
     IContentTypeMappingService contentTypeMappingService)
 {
     this.logger = logger;
     this.mapper = mapper;
     this.configurationSetDocumentService = configurationSetDocumentService;
     this.cmsApiService             = cmsApiService;
     this.cmsApiClientOptions       = cmsApiClientOptions;
     this.contentTypeMappingService = contentTypeMappingService;
 }
Пример #6
0
 public CacheReloadService(
     ILogger <CacheReloadService> logger,
     AutoMapper.IMapper mapper,
     IEventMessageService <ContentPageModel> eventMessageService,
     ICmsApiService cmsApiService,
     IContentCacheService contentCacheService,
     IAppRegistryApiService appRegistryService,
     IContentTypeMappingService contentTypeMappingService,
     IApiCacheService apiCacheService)
 {
     this.logger = logger;
     this.mapper = mapper;
     this.eventMessageService       = eventMessageService;
     this.cmsApiService             = cmsApiService;
     this.contentCacheService       = contentCacheService;
     this.appRegistryService        = appRegistryService;
     this.contentTypeMappingService = contentTypeMappingService;
     this.apiCacheService           = apiCacheService;
 }