Пример #1
0
 public BalancesUpdateProjection(
     [NotNull] ICachedWalletsRepository cachedWalletsRepository,
     [NotNull] IChaosKitty chaosKitty)
 {
     _cachedWalletsRepository = cachedWalletsRepository ?? throw new ArgumentNullException(nameof(cachedWalletsRepository));
     _chaosKitty = chaosKitty ?? throw new ArgumentNullException(nameof(chaosKitty));
 }
Пример #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));
 }
Пример #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);
 }
Пример #4
0
 public WalletsClientBalancesController(ICachedWalletsRepository cachedWalletsRepository, ITotalBalancesService totalBalancesService)
 {
     _cachedWalletsRepository = cachedWalletsRepository;
     _totalBalancesService    = totalBalancesService;
 }