示例#1
0
 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));
 }
示例#3
0
 public RequiredPaymentEventHandler(IPaymentLogger logger, IRequiredPaymentEventProcessor processor)
 {
     this.logger    = logger ?? throw new ArgumentNullException(nameof(logger));
     this.processor = processor ?? throw new ArgumentNullException(nameof(processor));
 }
示例#4
0
 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;
 }
示例#7
0
 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));
 }
示例#8
0
 public ApprenticeshipResumedEventHandler(IPaymentLogger logger, IContainerScopeFactory factory) : base(logger, factory)
 {
 }
示例#9
0
 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;
 }
示例#11
0
 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));
 }
示例#14
0
 public ComGateApiConnector(IComGateContentSerializer serializer, IPaymentLogger paymentLogger, IComGateRequestBuilder requestBuilder)
 {
     _serializer     = serializer;
     _paymentLogger  = paymentLogger;
     _requestBuilder = requestBuilder;
 }
示例#15
0
 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)
 {
 }
示例#19
0
 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));
 }
示例#20
0
 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);
 }
示例#21
0
 public DataLockEventService(StatefulServiceContext context, ILifetimeScope lifetimeScope, IPaymentLogger paymentLogger, IBatchProcessingService <DataLockStatusChanged> batchProcessingService)
     : base(context)
 {
     this.lifetimeScope          = lifetimeScope;
     this.paymentLogger          = paymentLogger;
     this.batchProcessingService = batchProcessingService;
 }
示例#22
0
 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);
 }
示例#23
0
 public ApprenticeshipUpdatedHandler(IPaymentLogger logger, IContainerScopeFactory factory) : base(logger, factory)
 {
 }
示例#24
0
        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;
 }
示例#27
0
 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));
 }
示例#29
0
 public ApprenticeshipContractType1RedundancyEarningEventHandler(IPaymentLogger logger, IEarningEventStorageService storageService)
 {
     this.logger         = logger ?? throw new ArgumentNullException(nameof(logger));
     this.storageService = storageService ?? throw new ArgumentNullException(nameof(storageService));
 }
示例#30
0
 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));
 }