示例#1
0
        /**********************************************************************************************************
        * CONSTRUCTORS
        **********************************************************************************************************/

        public HubSpotProvider([NotNull] ApplicationContext appContext, IHubSpotClientFactory hubspotClientFactory, ILogger log, ISystemNotifications notifications)
            : base(appContext, HubSpotConstants.CreateProviderMetadata())
        {
            _hubspotClientFactory = hubspotClientFactory ?? throw new ArgumentNullException(nameof(hubspotClientFactory));
            _log           = log ?? throw new ArgumentNullException(nameof(log));
            _notifications = notifications;
        }
示例#2
0
 public HubSpotCrawler(IHubSpotClientFactory clientFactory)
 {
     _clientFactory = clientFactory;
 }
示例#3
0
        /**********************************************************************************************************
        * CONSTRUCTORS
        **********************************************************************************************************/

        public HubSpotProvider([NotNull] ApplicationContext appContext, IHubSpotClientFactory hubspotClientFactory)
            : base(appContext, HubSpotConstants.CreateProviderMetadata())
        {
            _hubspotClientFactory = hubspotClientFactory;
        }
示例#4
0
 public Crawler(IHubSpotClientFactory clientFactory, ILogger log)
 {
     _clientFactory = clientFactory ?? throw new ArgumentNullException(nameof(clientFactory));
     _log           = log ?? throw new ArgumentNullException(nameof(log));
 }