コード例 #1
0
 public LoginController(string appName,
                        IRequest request,
                        IUserManager userManager,
                        IConfig config,
                        OCP.ISession session,
                        IUserSession userSession,
                        IURLGenerator urlGenerator,
                        OCP.ILogger logger,
                        Defaults defaults,
                        Throttler throttler,
                        Chain loginChain,
                        IInitialStateService initialStateService
                        ) : base(appName, request)
 {
     this.userManager         = userManager;
     this.config              = config;
     this.session             = session;
     this.userSession         = userSession;
     this.urlGenerator        = urlGenerator;
     this.logger              = logger;
     this.defaults            = defaults;
     this.throttler           = throttler;
     this.loginChain          = loginChain;
     this.initialStateService = initialStateService;
 }
コード例 #2
0
 /**
  * @param string appName
  * @param IRequest request
  * @param IURLGenerator urlGenerator
  * @param IUserManager userManager
  * @param Defaults defaults
  * @param IL10N l10n
  * @param IConfig config
  * @param ISecureRandom secureRandom
  * @param string defaultMailAddress
  * @param IManager encryptionManager
  * @param IMailer mailer
  * @param ITimeFactory timeFactory
  * @param ICrypto crypto
  */
 public LostController(string appName,
                       IRequest request,
                       IURLGenerator urlGenerator,
                       IUserManager userManager,
                       Defaults defaults,
                       IL10N l10n,
                       IConfig config,
                       ISecureRandom secureRandom,
                       string defaultMailAddress,
                       IManager encryptionManager,
                       IMailer mailer,
                       ITimeFactory timeFactory,
                       ICrypto crypto,
                       ILogger logger,
                       OC.Authentication.TwoFactorAuth.Manager twoFactorManager) : base(appName, request)
 {
     this.urlGenerator      = urlGenerator;
     this.userManager       = userManager;
     this.defaults          = defaults;
     this.l10n              = l10n;
     this.secureRandom      = secureRandom;
     this.from              = defaultMailAddress;
     this.encryptionManager = encryptionManager;
     this.config            = config;
     this.mailer            = mailer;
     this.timeFactory       = timeFactory;
     this.crypto            = crypto;
     this.logger            = logger;
     this.twoFactorManager  = twoFactorManager;
 }
コード例 #3
0
 /**
  * @since 14.0.0
  */
 public AuthPublicShareController(string appName,
                                  IRequest request,
                                  ISession session,
                                  IURLGenerator urlGenerator) : base(appName, request, session)
 {
     this.urlGenerator = urlGenerator;
 }
コード例 #4
0
ファイル: Mailer.cs プロジェクト: mindfocus/nextcloud_net
 /**
  * @param IConfig config
  * @param ILogger logger
  * @param Defaults defaults
  * @param IURLGenerator urlGenerator
  * @param IL10N l10n
  */
 public Mailer(IConfig config,
               ILogger logger,
               Defaults defaults,
               IURLGenerator urlGenerator,
               IL10N l10n)
 {
     this.config       = config;
     this.logger       = logger;
     this.defaults     = defaults;
     this.urlGenerator = urlGenerator;
     this.l10n         = l10n;
 }
コード例 #5
0
 /**
  * @param Defaults themingDefaults
  * @param IURLGenerator urlGenerator
  * @param IL10N l10n
  * @param string emailId
  * @param array data
  */
 public EMailTemplate(Defaults themingDefaults,
                      IURLGenerator urlGenerator,
                      IL10N l10n,
                      string emailId,
                      object data)
 {
     this.themingDefaults = themingDefaults;
     this.urlGenerator    = urlGenerator;
     this.l10n            = l10n;
     this.htmlBody       += this.head;
     this.emailId         = emailId;
     this.data            = data;
 }
コード例 #6
0
 public TwoFactorCommand(TwoFactorManager twoFactorManager, MandatoryTwoFactor mandatoryTwoFactor, IURLGenerator urlGenerator)
 {
     this.twoFactorManager   = twoFactorManager;
     this.mandatoryTwoFactor = mandatoryTwoFactor;
     this.urlGenerator       = urlGenerator;
 }
コード例 #7
0
 /**
  * @param IActionFactory actionFactory
  * @param IURLGenerator urlGenerator
  */
 public EMailProvider(IActionFactory actionFactory, IURLGenerator urlGenerator)
 {
     this.actionFactory = actionFactory;
     this.urlGenerator  = urlGenerator;
 }
コード例 #8
0
 public Launcher(IArgumentsParser argumentsParser, IURLGenerator URLGenerator, ICsvHandler csvHandler)
 {
     _argumentsParser = argumentsParser;
     _URLGenerator    = URLGenerator;
     _csvHandler      = csvHandler;
 }
コード例 #9
0
 public URLShortenerService(IURLShortenerRepository urlShortenerRepository, IURLGenerator <Guid> urlGenerator)
 {
     this.urlShortenerRepository = urlShortenerRepository;
     this.urlGenerator           = urlGenerator;
 }