Esempio n. 1
0
 public BalancesUpdateProjection(
     [NotNull] ICachedWalletsRepository cachedWalletsRepository,
     [NotNull] IChaosKitty chaosKitty)
 {
     _cachedWalletsRepository = cachedWalletsRepository ?? throw new ArgumentNullException(nameof(cachedWalletsRepository));
     _chaosKitty = chaosKitty ?? throw new ArgumentNullException(nameof(chaosKitty));
 }
Esempio n. 2
0
 public BalanceUpdateRabbitSubscriber(
     [NotNull] ICachedWalletsRepository cachedWalletsRepository,
     [NotNull] ILogFactory logFactory,
     [NotNull] RabbitMqSettings rabbitMqSettings,
     [NotNull] ICqrsEngine cqrsEngine)
 {
     _logFactory       = logFactory;
     _rabbitMqSettings = rabbitMqSettings ?? throw new ArgumentNullException(nameof(rabbitMqSettings));
     _cqrsEngine       = cqrsEngine ?? throw new ArgumentNullException(nameof(cqrsEngine));
 }
Esempio n. 3
0
 public ClientAuthenticatedRabbitSubscriber(
     [NotNull] ICachedWalletsRepository cachedWalletsRepository,
     [NotNull] ILogFactory logFactory,
     [NotNull] RabbitMqSettings rabbitMqSettings)
 {
     _cachedWalletsRepository = cachedWalletsRepository ?? throw new ArgumentNullException(nameof(cachedWalletsRepository));
     _logFactory       = logFactory ?? throw new ArgumentNullException(nameof(logFactory));
     _rabbitMqSettings = rabbitMqSettings ?? throw new ArgumentNullException(nameof(rabbitMqSettings));
     _log = logFactory.CreateLog(this);
 }
Esempio n. 4
0
 public WalletsClientBalancesController(ICachedWalletsRepository cachedWalletsRepository, ITotalBalancesService totalBalancesService)
 {
     _cachedWalletsRepository = cachedWalletsRepository;
     _totalBalancesService    = totalBalancesService;
 }