public UserService( UserRepository repository, IOptionsSnapshot <IdentityOptions> optionsAccessor, IPasswordHasher <User> passwordHasher, IEnumerable <IPasswordValidator <User> > passwordValidators, IUserValidator <User> userValidator, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, IServiceProvider services, ILogger <UserService> logger, IServiceBusPublisher publisher ) : base( repository, optionsAccessor, passwordHasher, new List <IUserValidator <User> > { userValidator }, passwordValidators, keyNormalizer, errors, services, logger) { _publisher = publisher; ErrorDescriber = errors; Repository = repository; }
public SessionUnlockService(ILogger <SessionUnlockService> logger, IServiceBusPublisher <SignalBitGoSessionStateUpdate> sessionPublisher, IBitGoClientService bitGoClientService) { _logger = logger; _sessionPublisher = sessionPublisher; _bitGoClientService = bitGoClientService; }
public ClientWalletService(ILogger <ClientWalletService> logger, IMyNoSqlServerDataWriter <ClientWalletNoSqlEntity> writer, DbContextOptionsBuilder <DatabaseContext> dbContextOptionsBuilder, IServiceBusPublisher <ClientWalletUpdateMessage> publisher) { _logger = logger; _writer = writer; _dbContextOptionsBuilder = dbContextOptionsBuilder; _publisher = publisher; }
public KycStatusService(ILogger <KycStatusService> logger, KycProfileRepository repository, IServiceBusPublisher <KycProfileUpdatedMessage> publisher, KycStatusSetter statusSetter) { _logger = logger; _repository = repository; _publisher = publisher; _statusSetter = statusSetter; }
public AzureServiceBusHubLifetimeManager( INodeIdProvider nodeIdProvider, MessageSenderHubLifetimeManager <THub> messageSender, IServiceBusPublisher serviceBusPublisher) { _nodeIdProvider = nodeIdProvider; _messageSender = messageSender; _serviceBusPublisher = serviceBusPublisher; }
public AzureServiceBusHubLifetimeManagerTests() { _serviceBusPublisher = A.Fake <IServiceBusPublisher>(); _nodeIdProvider = A.Fake <INodeIdProvider>(); _messageSender = A.Fake <MessageSenderHubLifetimeManager <TestHub> >(); _lifetimeManager = new AzureServiceBusHubLifetimeManager <TestHub>(_nodeIdProvider, _messageSender, _serviceBusPublisher); A.CallTo(() => _nodeIdProvider.NodeId).Returns(Guid.NewGuid()); }
public KycVerificationService(KycProfileRepository repository, KycAidHttpService httpService, ILogger <KycVerificationService> logger, DbContextOptionsBuilder <DatabaseContext> dbContextOptionsBuilder, IServiceBusPublisher <KycProfileUpdatedMessage> publisher, KycStatusSetter statusSetter) { _repository = repository; _httpService = httpService; _logger = logger; _dbContextOptionsBuilder = dbContextOptionsBuilder; _publisher = publisher; _statusSetter = statusSetter; }
public static async Task PublishChallengeStartedIntegrationEventAsync(this IServiceBusPublisher publisher, IChallenge challenge) { var integrationEvent = new ChallengeStartedIntegrationEvent { Challenge = ChallengeProfile.Map(challenge) }; await publisher.PublishAsync(integrationEvent); }
public static async Task PublishUserDepositCanceledIntegrationEventAsync(this IServiceBusPublisher publisher, UserId userId, TransactionDto transaction) { var integrationEvent = new UserDepositCanceledIntegrationEvent { UserId = userId, Transaction = transaction }; await publisher.PublishAsync(integrationEvent); }
public RegistrationService(ILogger <RegistrationService> logger, IServiceBusPublisher <ClientRegisterMessage> registerPublisher, IServiceBusPublisher <ClientRegisterFailAlreadyExistsMessage> failPublisher, IPersonalDataServiceGrpc personalData, DbContextOptionsBuilder <DatabaseContext> dbContextOptionsBuilder, IAuditLogServiceGrpc auditLogService, IAuthService authService) { _logger = logger; _registerPublisher = registerPublisher; _failPublisher = failPublisher; _personalData = personalData; _dbContextOptionsBuilder = dbContextOptionsBuilder; _auditLogService = auditLogService; _authService = authService; }
private readonly ILogger _logger; // FRANCIS: Add logs. public UserCreatedIntegrationEventHandler( IStripeCustomerService stripeCustomerService, IServiceBusPublisher serviceBusPublisher, ILogger <UserCreatedIntegrationEventHandler> logger ) { _stripeCustomerService = stripeCustomerService; _serviceBusPublisher = serviceBusPublisher; _logger = logger; }
public CircleDepositService(ILogger <CircleDepositService> logger, ICirclePaymentsService circlePaymentsService, ICircleCardsService circleCardsService, DbContextOptionsBuilder <DatabaseContext> dbContextOptionsBuilder, IServiceBusPublisher <Deposit> depositPublisher) { _logger = logger; _circlePaymentsService = circlePaymentsService; _circleCardsService = circleCardsService; _dbContextOptionsBuilder = dbContextOptionsBuilder; _depositPublisher = depositPublisher; }
public TalentechAdminServiceBusClient( IServiceBusPublisher serviceBusPublisher, IServiceBusSubscriber serviceBusSubscriber, IServiceBusSubscriberForDeadLetter serviceBusSubscriberForDeadLetter, ILogger <TalentechAdminServiceBusClient> logger) { _serviceBusPublisher = serviceBusPublisher; _serviceBusSubscriber = serviceBusSubscriber; _serviceBusSubscriberForDeadLetter = serviceBusSubscriberForDeadLetter; _logger = logger; }
public PortfolioReport( ILogger <PortfolioReport> logger, IServiceBusPublisher <PortfolioTrade> tradePublisher, IServiceBusPublisher <PositionAssociation> associationPublisher, IServiceBusPublisher <PositionPortfolio> positionPublisher) { _logger = logger; _tradePublisher = tradePublisher; _associationPublisher = associationPublisher; _positionPublisher = positionPublisher; }
public ApplicationServiceBusClient( IServiceBusPublisher serviceBusPublisher, IServiceBusSubscriber serviceBusSubscriber, IServiceBusSubscriberForDeadLetter serviceBusSubscriberForDeadLetter, ILogger <ApplicationServiceBusClient> logger) { _serviceBusPublisher = serviceBusPublisher; _serviceBusSubscriber = serviceBusSubscriber; _serviceBusSubscriberForDeadLetter = serviceBusSubscriberForDeadLetter; _logger = logger; }
public UserStripePaymentIntentSucceededIntegrationEventHandler( IAccountService accountService, IMapper mapper, IServiceBusPublisher serviceBusPublisher, ILogger <UserStripePaymentIntentSucceededIntegrationEventHandler> logger ) { _accountService = accountService; _mapper = mapper; _serviceBusPublisher = serviceBusPublisher; _logger = logger; }
public PaymentGrpcService( ILogger <PaymentGrpcService> logger, IServiceBusPublisher serviceBusPublisher, IPaypalPayoutService paypalPayoutService, IOptionsSnapshot <StripeOptions> stripeOptions ) { _logger = logger; _serviceBusPublisher = serviceBusPublisher; _paypalPayoutService = paypalPayoutService; _stripeOptions = stripeOptions; }
public SpotChangeBalanceService(ILogger <SpotChangeBalanceService> logger, IBalanceOperationService balanceOperationService, IAssetsDictionaryClient assetsDictionaryClient, IClientWalletService clientWalletService, IServiceBusPublisher <ManualChangeBalanceMessage> publisher) { _logger = logger; _balanceOperationService = balanceOperationService; _assetsDictionaryClient = assetsDictionaryClient; _clientWalletService = clientWalletService; _publisher = publisher; }
public DepositsProcessingJob(ILogger <DepositsProcessingJob> logger, DbContextOptionsBuilder <DatabaseContext> dbContextOptionsBuilder, ISpotChangeBalanceService changeBalanceService, IServiceBusPublisher <Deposit> depositPublisher) { _logger = logger; _dbContextOptionsBuilder = dbContextOptionsBuilder; _changeBalanceService = changeBalanceService; _depositPublisher = depositPublisher; _timer = new MyTaskTimer(typeof(DepositsProcessingJob), TimeSpan.FromSeconds(Program.ReloadedSettings(e => e.DepositsProcessingIntervalSec).Invoke()), logger, DoTime); }
public static async Task PublishChallengeSynchronizedIntegrationEventAsync(this IServiceBusPublisher publisher, IChallenge challenge) { var integrationEvent = new ChallengeSynchronizedIntegrationEvent { ChallengeId = challenge.Id, Scoreboard = { challenge.Participants.Select(participant => ChallengeProfile.Map(challenge, participant)) } }; await publisher.PublishAsync(integrationEvent); }
public FireblocksDepositProcessingService( ILogger <FireblocksDepositProcessingService> logger, DbContextOptionsBuilder <DatabaseContext> dbContextOptionsBuilder, IAssetsDictionaryClient assetsDictionary, IServiceBusPublisher <Deposit> depositPublisher, ICircleAssetMapper circleAssetMapper, ICircleBlockchainMapper circleBlockchainMapper) { _logger = logger; _dbContextOptionsBuilder = dbContextOptionsBuilder; _assetsDictionary = assetsDictionary; _depositPublisher = depositPublisher; }
public static async Task PublishUserPhoneChangedIntegrationEventAsync(this IServiceBusPublisher publisher, User user) { var integrationEvent = new UserPhoneChangedIntegrationEvent { UserId = user.Id.ToString(), Phone = new PhoneDto { Number = user.PhoneNumber, Verified = user.PhoneNumberConfirmed } }; await publisher.PublishAsync(integrationEvent); }
public static async Task PublishUserEmailChangedIntegrationEventAsync(this IServiceBusPublisher publisher, User user) { var integrationEvent = new UserEmailChangedIntegrationEvent { UserId = user.Id.ToString(), Email = new EmailDto { Address = user.Email, Verified = user.EmailConfirmed } }; await publisher.PublishAsync(integrationEvent); }
public static async Task PublishUserGameCredentialAddedIntegrationEventAsync(this IServiceBusPublisher publisher, Credential credential) { var integrationEvent = new UserGameCredentialAddedIntegrationEvent { Credential = new GameCredentialDto { UserId = credential.UserId, PlayerId = credential.PlayerId, Game = credential.Game.ToEnum <EnumGame>() } }; await publisher.PublishAsync(integrationEvent); }
public AccountController( IUserService userService, ISignInService signInService, IEventService eventService, IIdentityServerInteractionService interactionService, IServiceBusPublisher serviceBusPublisher ) { _userService = userService; _signInService = signInService; _eventService = eventService; _interactionService = interactionService; _serviceBusPublisher = serviceBusPublisher; }
public SignalFireblocksTransferJob(ISubscriber <FireblocksWithdrawalSignal> subscriber, ILogger <SignalFireblocksTransferJob> logger, DbContextOptionsBuilder <DatabaseContext> dbContextOptionsBuilder, CryptoWithdrawalService cryptoWithdrawalService, IServiceBusPublisher <Withdrawal> withdrawalPublisher, FireblocksWithdrawalNoteService fireblocksWithdrawalNoteService) { _logger = logger; _dbContextOptionsBuilder = dbContextOptionsBuilder; _cryptoWithdrawalService = cryptoWithdrawalService; _withdrawalPublisher = withdrawalPublisher; _fireblocksWithdrawalNoteService = fireblocksWithdrawalNoteService; subscriber.Subscribe(HandleSignal); }
public static async Task PublishUserEmailConfirmationTokenGeneratedIntegrationEventAsync( this IServiceBusPublisher publisher, UserId userId, string code ) { var integrationEvent = new UserEmailConfirmationTokenGeneratedIntegrationEvent { UserId = userId, Code = code }; await publisher.PublishAsync(integrationEvent); }
public ClanMemberAddedDomainEventHandler( IClanService clanService, IInvitationService invitationService, ICandidatureService candidatureService, IServiceBusPublisher serviceBusPublisher, ILogger <ClanMemberAddedDomainEventHandler> logger ) { _clanService = clanService; _invitationService = invitationService; _candidatureService = candidatureService; _serviceBusPublisher = serviceBusPublisher; _logger = logger; }
public BitgoWithdrawalService(ILogger <BitgoWithdrawalService> logger, DbContextOptionsBuilder <DatabaseContext> dbContextOptionsBuilder, CryptoWithdrawalService cryptoWithdrawalService, IServiceBusPublisher <Withdrawal> withdrawalPublisher, IWithdrawalVerificationService verificationService, FireblocksWithdrawalNoteService fireblocksWithdrawalNoteService) { _logger = logger; _dbContextOptionsBuilder = dbContextOptionsBuilder; _cryptoWithdrawalService = cryptoWithdrawalService; _withdrawalPublisher = withdrawalPublisher; _verificationService = verificationService; _fireblocksWithdrawalNoteService = fireblocksWithdrawalNoteService; }
public static async Task PublishUserStripePaymentIntentPaymentFailedIntegrationEventAsync( this IServiceBusPublisher publisher, UserId userId, TransactionId transactionId ) { var integrationEvent = new UserStripePaymentIntentPaymentFailedIntegrationEvent { UserId = userId, TransactionId = transactionId }; await publisher.PublishAsync(integrationEvent); }