Ejemplo 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));
 }
Ejemplo 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));
 }
Ejemplo 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);
 }
Ejemplo n.º 4
0
 public WalletsClientBalancesController(ICachedWalletsRepository cachedWalletsRepository, ITotalBalancesService totalBalancesService)
 {
     _cachedWalletsRepository = cachedWalletsRepository;
     _totalBalancesService    = totalBalancesService;
 }