示例#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 DropBoxProvider([NotNull] ApplicationContext appContext, IDropBoxClientFactory dropboxClientFactory, ILogger log, ISystemNotifications notifications, IRelationalDataStore <Token> tokenStore)
     : base(appContext, DropBoxConstants.CreateProviderMetadata())
 {
     _dropboxClientFactory = dropboxClientFactory ?? throw new ArgumentNullException(nameof(dropboxClientFactory));
     _log           = log ?? throw new ArgumentNullException(nameof(log));
     _tokenStore    = tokenStore ?? throw new ArgumentNullException(nameof(tokenStore));
     _notifications = notifications;
 }