Esempio n. 1
0
 public CosmosUserRepository(
     ICosmos db,
     ISequenceRepository sequence,
     ILogger<CosmosUserRepository> logger)
 {
     _db = db;
     _sequence = sequence;
     _logger = logger;
     _keys = new PartitionKeyRotation(new string[] { "JumpConsistentSeed1",
                                                     "JumpConsistentSeed2",
                                                     "JumpConsistentSeed3",
                                                     "JumpConsistentSeed4",
                                                     "JumpConsistentSeed5",
                                                     "JumpConsistentSeed6",
                                                     "JumpConsistentSeed7",
                                                     "JumpConsistentSeed8",
                                                     "JumpConsistentSeed9",
                                                     "JumpConsistentSeed10",
                                                     "JumpConsistentSeed11",
                                                     "JumpConsistentSeed12",
                                                     "JumpConsistentSeed13",
                                                     "JumpConsistentSeed14",
                                                     "JumpConsistentSeed15",
                                                     "JumpConsistentSeed16"});
 }
Esempio n. 2
0
 public CosmosUserRepository(
     ICosmos db,
     ILogger <CosmosUserRepository> logger)
 {
     _db     = db;
     _logger = logger;
 }
 public CosmosTemporaryExposureKeyRepository(
     ICosmos db,
     ILogger <CosmosTemporaryExposureKeyRepository> logger)
 {
     _db     = db;
     _logger = logger;
 }
 public CustomVerificationStatusRepository(
     ICosmos db,
     ILogger <CustomVerificationStatusRepository> logger)
 {
     _db           = db;
     _logger       = logger;
     GetAsyncCache = new QueryCache <CustomVerificationStatusModel[]>(Constants.CacheTimeout);
 }
Esempio n. 5
0
 public CosmosEventLogRepository(
     ICosmos db,
     ILogger <CosmosEventLogRepository> logger
     )
 {
     _db     = db;
     _logger = logger;
 }
 public BeaconQueueFunction(ICosmos cosmos,
                            IConfiguration config,
                            ILogger <BeaconQueueFunction> logger)
 {
     Cosmos = cosmos;
     Logger = logger;
     Config = config;
 }
Esempio n. 7
0
 public NotificationCreateApi(
     ICosmos cosmos,
     INotificationService notification,
     ILogger <NotificationCreateApi> logger)
 {
     Cosmos       = cosmos;
     Notification = notification;
     Logger       = logger;
 }
 public NotificationService(
     Microsoft.Extensions.Configuration.IConfiguration config,
     ICosmos cosmos,
     ILogger <NotificationService> logger)
 {
     this.Cosmos = cosmos;
     this.Logger = logger;
     this.LastNotificationCheckInterval = Convert.ToInt32(config.GetSection("LAST_NOTIFICATION_CHECK_INTERVAL").Value);
 }
Esempio n. 9
0
 public RegisterApi(
     ICosmos cosmos,
     ICryptionService cryption,
     ILogger <RegisterApi> logger)
 {
     Cosmos   = cosmos;
     Cryption = cryption;
     Logger   = logger;
 }
Esempio n. 10
0
 public CosmosTemporaryExposureKeyExportRepository(
     ICosmos db,
     ISequenceRepository sequence,
     ILogger <CosmosTemporaryExposureKeyExportRepository> logger)
 {
     _db       = db;
     _sequence = sequence;
     _logger   = logger;
 }
 public CosmosUserRepository(
     ICosmos db,
     ISequenceRepository sequence,
     ILogger <CosmosUserRepository> logger)
 {
     _db       = db;
     _sequence = sequence;
     _logger   = logger;
 }
Esempio n. 12
0
 public CosmosTemporaryExposureKeyExportRepository(
     ICosmos db,
     ISequenceRepository sequence,
     ILogger <CosmosTemporaryExposureKeyExportRepository> logger)
 {
     _db               = db;
     _logger           = logger;
     GetKeysAsyncCache = new QueryCache <TemporaryExposureKeyExportModel[]>(Constants.CacheTimeout);
 }
 public ValidationUserService(
     ICosmos cosmos,
     ICryptionService cryption,
     ILogger <ValidationUserService> logger)
 {
     Cosmos   = cosmos;
     Cryption = cryption;
     Logger   = logger;
 }
Esempio n. 14
0
 public ValidationUserService(
     ICosmos cosmos,
     ICryptionService cryption,
     Microsoft.Extensions.Configuration.IConfiguration config,
     ILogger <ValidationUserService> logger)
 {
     Cosmos   = cosmos;
     Cryption = cryption;
     Logger   = logger;
 }
Esempio n. 15
0
 public UserApi(ICosmos cosmos,
                INotificationService notification,
                IValidationUserService validation,
                ILogger <UserApi> logger)
 {
     Cosmos       = cosmos;
     Notification = notification;
     Validation   = validation;
     Logger       = logger;
 }
Esempio n. 16
0
 public InfectionApi(ICosmos cosmos, ILogger <InfectionApi> logger)
 {
     Cosmos = cosmos;
     Logger = logger;
 }
Esempio n. 17
0
 public BeaconApi(ICosmos cosmos)
 {
     _cosmos = cosmos;
 }
Esempio n. 18
0
 public ConfigRepo(ICosmos <ConfigModel> cosmos)
 {
     this.cosmos = cosmos;
 }
Esempio n. 19
0
 public OtpService(ICosmos db, IOtpGenerator otpGenerator, ISmsSender smsSender)
 {
     _db           = db;
     _otpGenerator = otpGenerator;
     _smsSender    = smsSender;
 }
Esempio n. 20
0
 public BeaconApi(ICosmos cosmos, ILogger <BeaconApi> logger)
 {
     Cosmos = cosmos;
     Logger = logger;
 }
 public CosmosDiagnosisRepository(ICosmos db, ILogger <CosmosDiagnosisRepository> logger)
 {
     _db     = db;
     _logger = logger;
 }
Esempio n. 22
0
 public ContactFunction(ICosmos cosmos, IStoringCosmos store, ILogger <ContactFunction> logger)
 {
     Cosmos = cosmos;
     Store  = store;
     Logger = logger;
 }
Esempio n. 23
0
 public MuteRepo(ICosmos <MuteModel> cosmos)
 {
     this.cosmos = cosmos;
 }
 public CosmosBeaconRepository(ICosmos db)
 {
     _db = db;
 }
Esempio n. 25
0
 public BanRepo(ICosmos <BanModel> cosmos)
 {
     this.cosmos = cosmos;
 }
Esempio n. 26
0
 public UserApi(ICosmos cosmos)
 {
     _Cosmos = cosmos;
 }
Esempio n. 27
0
 public RegisterApi(ICosmos cosmos, ILogger <RegisterApi> logger)
 {
     Cosmos = cosmos;
     Logger = logger;
 }
 public CosmosOtpRepository(ICosmos db)
 {
     _db = db;
 }
Esempio n. 29
0
 public CosmosSequenceRepository(ICosmos db, ILogger <CosmosSequenceRepository> logger)
 {
     _db     = db;
     _logger = logger;
 }
Esempio n. 30
0
 public UserApi(ICosmos cosmos, ILogger <UserApi> logger)
 {
     Cosmos = cosmos;
     Logger = logger;
 }