public InsessionBlockChainActor(IEligibilityBlockRepository eligibilityBlockRepository, IExperienceBlockRepository experienceBlockRepository, ICreditBlockRepository creditBlockRepository)
 {
     _eligibilityRepository     = eligibilityBlockRepository;
     _experienceBlockRepository = experienceBlockRepository;
     _creditBlockRepository     = creditBlockRepository;
     Receive <TransactionMessage.Insession>(_ => HandleTransactionMessage(_));
 }
Exemplo n.º 2
0
 public EligibilitySystem(ILoggerFactory loggerFactory, IEligibilityRepository eligibilityRepository, IEligibilityBlockRepository eligibilityBlockRepository, IExperienceBlockRepository experienceBlockRepository, ICreditBlockRepository creditBlockRepository)
 {
     _loggerFactory             = loggerFactory;
     _logger                    = new Logger <EligibilitySystem>(loggerFactory);
     _eligibilityRepository     = eligibilityRepository;
     _blockChainRepository      = eligibilityBlockRepository;
     _experienceBlockRepository = experienceBlockRepository;
     _creditBlockRepository     = creditBlockRepository;
 }
Exemplo n.º 3
0
 public EligibilityActor(IActorRef blockRef, ILoggerFactory loggerFactory, IEligibilityRepository eligibilityRepository, IEligibilityBlockRepository eBlockRepository, IExperienceBlockRepository experienceBlockRepository, ICreditBlockRepository creditBlockRepository)
 {
     _logger = new Logger <EligibilityActor>(loggerFactory);
     _eligibilityRepository      = eligibilityRepository;
     _eligibilityBlockRepository = eBlockRepository;
     _experienceBlockRepository  = experienceBlockRepository;
     _creditBlockRepository      = creditBlockRepository;
     _blockRef = blockRef;
     Receive <DailyDealEligibilityModel>(_ => HandleDailyDealEligibility(_));
     Receive <ConversionModel>(_ => HandleConversion(_));
     Receive <LowBalanceEventMessage>(_ => HandleLowBalance(_));
     Receive <InsessionEligibility>(_ => HandleEligibility(_));
 }