Пример #1
0
        public DropBoxOAuthController([NotNull] DropBoxProviderComponent component, ILogger log, IRelationalDataStore <Token> tokenStore)
            : base(component)
        {
            _log = log ?? throw new ArgumentNullException(nameof(log));

            _tokenStore = tokenStore ?? throw new ArgumentNullException(nameof(tokenStore));;
        }
Пример #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;
 }