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))); }
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; }