コード例 #1
0
        public async Task <IActionResult> ImportFromDenariAsync([FromServices] IGoogleCloudPubSubService pubSubService)
        {
            var viewModel = new HubspotImportFromDenari
            {
                ImportMessageId = await pubSubService.PublishMessageAsync(Topics.HubspotBeginImport, "all"),
            };

            return(View(GetPageViewModel(viewModel, pageTitle: "Hubspot Import From Denari", HttpContext.User)));
        }
コード例 #2
0
        public Worker(
            IDrapiService drapiService,
            IHubspotService hubspotService,
            IGoogleCloudPubSubService googleCloudPubSubService,
            IGoogleCloudFirestoreService googleCloudFirestoreService,
            IMemoryCache memoryCache)
        {
            m_logger = LogManager.GetCurrentClassLogger();
            m_cache  = memoryCache;

            m_drapiService                = drapiService;
            m_hubspotService              = hubspotService;
            m_googleCloudPubSubService    = googleCloudPubSubService;
            m_googleCloudFirestoreService = googleCloudFirestoreService;
        }