public ComGateApiConnector() { _serializer = new ComGateContentSerializer(); _paymentLogger = new NullPaymentLogger(); _requestBuilder = new ComGateRequestBuilder(); }
public ImportEmployerAccountsCommandHandler(IPaymentLogger paymentLogger, IProcessLevyAccountBalanceService levyAccountBalanceService) { this.paymentLogger = paymentLogger ?? throw new ArgumentNullException(nameof(paymentLogger)); this.levyAccountBalanceService = levyAccountBalanceService ?? throw new ArgumentNullException(nameof(levyAccountBalanceService)); }
public RequiredPaymentEventHandler(IPaymentLogger logger, IRequiredPaymentEventProcessor processor) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.processor = processor ?? throw new ArgumentNullException(nameof(processor)); }
public MessagingLoggerFactory(IPaymentLogger logger, IApplicationLoggerSettings settings) { this.logger = logger; this.settings = settings; }
public MessagingLogger(IPaymentLogger logger, IApplicationLoggerSettings settings) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); minimum = settings.MinimumLogLevel(); }
public MonthEndCommandHandler(ITelemetry telemetry, IActorProxyFactory proxyFactory, IPaymentLogger paymentLogger) { this.telemetry = telemetry; this.proxyFactory = proxyFactory; this.paymentLogger = paymentLogger; }
public PeriodEndJobClient(IMonitoringMessageSessionFactory factory, IPaymentLogger logger, IConfigurationHelper config) { messageSession = factory?.Create() ?? throw new ArgumentNullException(); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.config = config ?? throw new ArgumentNullException(nameof(config)); }
public ApprenticeshipResumedEventHandler(IPaymentLogger logger, IContainerScopeFactory factory) : base(logger, factory) { }
public PeriodEndJobStatusService(IJobStorageService jobStorageService, IPaymentLogger logger, ITelemetry telemetry, IJobStatusEventPublisher eventPublisher, IJobServiceConfiguration config) : base(jobStorageService, logger, telemetry, eventPublisher, config) { }
public DataLockEventProcessor(IDataLockFailureRepository dataLockFailureRepository, IDataLockStatusService dataLockStatusService, IMapper mapper, IPaymentLogger paymentLogger) { this.dataLockFailureRepository = dataLockFailureRepository; this.dataLockStatusService = dataLockStatusService; this.mapper = mapper; this.paymentLogger = paymentLogger; }
public PeriodEndJobService(IPaymentLogger logger, IJobStorageService jobStorageService, ITelemetry telemetry) : base(logger, jobStorageService, telemetry) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ExceptionHandlingBehavior(IPaymentLogger logger) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public JobStatusEventPublisher(IEndpointInstanceFactory factory, IPaymentLogger logger) { this.factory = factory ?? throw new ArgumentNullException(nameof(factory)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ComGateApiConnector(IComGateContentSerializer serializer, IPaymentLogger paymentLogger, IComGateRequestBuilder requestBuilder) { _serializer = serializer; _paymentLogger = paymentLogger; _requestBuilder = requestBuilder; }
public DataLockEventRepository(IAuditDataContext dataContext, IAuditDataContextFactory retryDataContextFactory, IPaymentLogger logger) { this.dataContext = dataContext ?? throw new ArgumentNullException(nameof(dataContext)); this.retryDataContextFactory = retryDataContextFactory ?? throw new ArgumentNullException(nameof(retryDataContextFactory)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public RecordPeriodEndRunJobHandler(IPaymentLogger logger) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public SubmissionFailedEventHandler(ISubmissionEventProcessor submissionEventProcessor, IPaymentLogger logger) { this.submissionEventProcessor = submissionEventProcessor; this.logger = logger; }
public RecordJobMessageProcessingStatusHandler(IServiceProxyFactory proxyFactory, IPaymentLogger logger) : base(proxyFactory, logger) { }
public EarningEventsService(StatelessServiceContext context, ILifetimeScope lifetimeScope, IPaymentLogger logger) : base(context) { this.lifetimeScope = lifetimeScope ?? throw new ArgumentNullException(nameof(lifetimeScope)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public static async Task Run([TimerTrigger("%LevyAccountSchedule%", RunOnStartup = true)] TimerInfo myTimer, [Inject] IEndpointInstanceFactory endpointInstanceFactory, [Inject] IScheduledJobsConfiguration config, [Inject] IPaymentLogger log) { await RunLevyAccountImport(endpointInstanceFactory, config, log); }
public DataLockEventService(StatefulServiceContext context, ILifetimeScope lifetimeScope, IPaymentLogger paymentLogger, IBatchProcessingService <DataLockStatusChanged> batchProcessingService) : base(context) { this.lifetimeScope = lifetimeScope; this.paymentLogger = paymentLogger; this.batchProcessingService = batchProcessingService; }
public static async Task HttpLevyAccountImport([HttpTrigger(AuthorizationLevel.Function, "get", Route = null)] HttpRequest req, [Inject] IEndpointInstanceFactory endpointInstanceFactory, [Inject] IScheduledJobsConfiguration config, [Inject] IPaymentLogger log) { await RunLevyAccountImport(endpointInstanceFactory, config, log); }
public ApprenticeshipUpdatedHandler(IPaymentLogger logger, IContainerScopeFactory factory) : base(logger, factory) { }
private static async Task RunLevyAccountImport(IEndpointInstanceFactory endpointInstanceFactory, IScheduledJobsConfiguration config, IPaymentLogger log) { try { var command = new ImportEmployerAccounts(); var endpointInstance = await endpointInstanceFactory.GetEndpointInstance().ConfigureAwait(false); await endpointInstance.Send(config.LevyAccountBalanceEndpoint, command).ConfigureAwait(false); } catch (Exception e) { log.LogError("Error in LevyAccountImport", e); throw; } }
public JobStatusService(IJobsDataContext dataContext, IPaymentLogger logger, IJobStatusConfiguration config) { this.dataContext = dataContext ?? throw new ArgumentNullException(nameof(dataContext)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.config = config ?? throw new ArgumentNullException(nameof(config)); }
public DataLockFailureRepository(IPaymentsDataContext paymentsDataContext, IPaymentLogger logger) { this.paymentsDataContext = paymentsDataContext; this.logger = logger; }
public ProcessProviderMonthEndAct1CompletionPaymentCommandHandler(IDasEndpointFactory dasEndpointFactory, IPaymentLogger paymentLogger, ICompletionPaymentService completionPaymentService) { this.dasEndpointFactory = dasEndpointFactory ?? throw new ArgumentNullException(nameof(dasEndpointFactory)); this.paymentLogger = paymentLogger ?? throw new ArgumentNullException(nameof(paymentLogger)); this.completionPaymentService = completionPaymentService ?? throw new ArgumentNullException(nameof(completionPaymentService)); }
public RecordPeriodEndStopJobHandler(IPaymentLogger logger, IPeriodEndJobService periodEndJobService, IPeriodEndJobStatusManager jobStatusManager) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.periodEndJobService = periodEndJobService ?? throw new ArgumentNullException(nameof(periodEndJobService)); this.jobStatusManager = jobStatusManager ?? throw new ArgumentNullException(nameof(jobStatusManager)); }
public ApprenticeshipContractType1RedundancyEarningEventHandler(IPaymentLogger logger, IEarningEventStorageService storageService) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.storageService = storageService ?? throw new ArgumentNullException(nameof(storageService)); }
public RequiredPaymentEventStorageService(IRequiredPaymentEventMapper mapper, IPaymentLogger logger, IRequiredPaymentEventRepository repository) { this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.repository = repository ?? throw new ArgumentNullException(nameof(repository)); }