コード例 #1
0
 public RestoreServiceTest(IAuthenticatorRepository authenticatorRepository,
                           IAuthenticatorCategoryRepository authenticatorCategoryRepository, ICategoryRepository categoryRepository,
                           ICustomIconRepository customIconRepository, IRestoreService restoreService, Backup backup)
     : base(authenticatorRepository, categoryRepository, authenticatorCategoryRepository, customIconRepository)
 {
     _restoreService = restoreService;
     _backup         = backup;
 }
コード例 #2
0
 public BackupService(IAuthenticatorRepository authenticatorRepository, ICategoryRepository categoryRepository,
                      IAuthenticatorCategoryRepository authenticatorCategoryRepository,
                      ICustomIconRepository customIconRepository, IAssetProvider assetProvider)
 {
     _authenticatorRepository         = authenticatorRepository;
     _categoryRepository              = categoryRepository;
     _authenticatorCategoryRepository = authenticatorCategoryRepository;
     _customIconRepository            = customIconRepository;
     _assetProvider = assetProvider;
 }
コード例 #3
0
 public DataTest(IAuthenticatorRepository authenticatorRepository,
                 ICategoryRepository categoryRepository,
                 IAuthenticatorCategoryRepository authenticatorCategoryRepository,
                 ICustomIconRepository customIconRepository)
 {
     AuthenticatorRepository         = authenticatorRepository;
     AuthenticatorCategoryRepository = authenticatorCategoryRepository;
     CategoryRepository   = categoryRepository;
     CustomIconRepository = customIconRepository;
 }
コード例 #4
0
 public AuthenticatorService(IAuthenticatorRepository authenticatorRepository,
                             IAuthenticatorCategoryRepository authenticatorCategoryRepository,
                             IIconResolver iconResolver, ICustomIconService customIconService,
                             ICustomIconRepository customIconRepository)
 {
     _authenticatorRepository         = authenticatorRepository;
     _authenticatorCategoryRepository = authenticatorCategoryRepository;
     _iconResolver         = iconResolver;
     _customIconService    = customIconService;
     _customIconRepository = customIconRepository;
 }
コード例 #5
0
        public AutoBackupWorker(Context context, WorkerParameters workerParams) : base(context, workerParams)
        {
            _context             = context;
            _preferences         = new PreferenceWrapper(context);
            _shouldCloseDatabase = false;

            _database                        = Dependencies.Resolve <Database>();
            _restoreService                  = Dependencies.Resolve <IRestoreService>();
            _authenticatorRepository         = Dependencies.Resolve <IAuthenticatorRepository>();
            _categoryRepository              = Dependencies.Resolve <ICategoryRepository>();
            _authenticatorCategoryRepository = Dependencies.Resolve <IAuthenticatorCategoryRepository>();
            _customIconRepository            = Dependencies.Resolve <ICustomIconRepository>();

            _initTask = new Lazy <Task>(async delegate
            {
                if (!_database.IsOpen)
                {
                    var password = await SecureStorageWrapper.GetDatabasePassword();
                    await _database.Open(password);
                    _shouldCloseDatabase = true;
                }
            });
        }
コード例 #6
0
 public AuthenticatorService(IAuthenticatorRepository authenRepository, IMapper mapper)
 {
     _authenRepository = authenRepository;
     _mapper           = mapper;
 }
コード例 #7
0
 public PresharedKeyAuthentication(IAuthenticatorRepository repository)
 {
     this.repository = repository;
 }
コード例 #8
0
 public DigestAuthentication(IAuthenticatorRepository repository)
 {
     this.repository = repository;
 }
コード例 #9
0
 public AuthenticationHandler(IAuthenticatorRepository repository, IApiAreaSelector apiAreaSelector)
 {
     this.repository      = repository;
     this.apiAreaSelector = apiAreaSelector;
 }
コード例 #10
0
 public AuthenticationHandler(IAuthenticatorRepository repository)
     : this(repository, ApiAuthenticationProviderBootstrapper.Instance.Resolve <IApiAreaSelector>())
 {
 }
コード例 #11
0
 public PlaylistService(IPlaylistRepository playlistRepository, IAuthenticatorRepository authenRepository, IMapper mapper)
 {
     _playlistRepository = playlistRepository;
     _authenRepository   = authenRepository;
     _mapper             = mapper;
 }
コード例 #12
0
 public CustomIconService(ICustomIconRepository customIconRepository,
                          IAuthenticatorRepository authenticatorRepository)
 {
     _customIconRepository    = customIconRepository;
     _authenticatorRepository = authenticatorRepository;
 }
コード例 #13
0
 public BasicAuthentication(IAuthenticatorRepository repository)
 {
     this.repository = repository;
 }
コード例 #14
0
 public ClientCertificateAuthentication(IAuthenticatorRepository repository)
 {
     this.repository = repository;
 }
コード例 #15
0
 public NoneAuthentication(IAuthenticatorRepository repository)
 {
     this.repository = repository;
 }