public PageModelBuilder(ICancellationsDueToOrphan cancellationsDueToOrphan, IPaymentsCalculator paymentsCalculator, IGatewayRefusals gatewayRefusals, ILoggingInfo loggingInfo, SystemOnlineOrOfflineStatus systemOnlineOrOfflineStatus, IMonitoringEvents monitoringEvents) { _cancellationsDueToOrphan = cancellationsDueToOrphan; _paymentsCalculator = paymentsCalculator; _gatewayRefusals = gatewayRefusals; _loggingInfo = loggingInfo; _systemOnlineOrOfflineStatus = systemOnlineOrOfflineStatus; _monitoringEvents = monitoringEvents; }
public ClusterConfig(IConfiguration configuration, IRedis redis, IMemoryCache cache, ILogger <ClusterConfig> logger, IMonitoringEvents monitoring) { _redis = redis; _cache = cache; _logger = logger; _monitoring = monitoring; var consensus = configuration.GetSection("Consensus"); _selfId = consensus.GetValue <string>("Self"); ElectionPeriodMin = consensus.GetValue("ElectionPeriodMin", 2400); ElectionPeriodMax = consensus.GetValue("ElectionPeriodMax", 3600); HeartbeatPeriod = consensus.GetValue("HeartbeatPeriod", 1000); Log = msg => _logger.LogInformation(msg); Poll(CancellationToken.None).ContinueWith(t => { if (t.Exception != null) { _logger.LogError(t.Exception, "PublishSelf terminated with an error"); } }); }
public GetCancelledPayment(IMonitoringEvents monitoringEvents) { _monitoringEvents = monitoringEvents; }
public CancellationsDueToOrphan(IMonitoringEvents monitoringEvents) { _monitoringEvents = monitoringEvents; }
public PspCommunicationFailures(IMonitoringEvents monitoringEvents) { _monitoringEvents = monitoringEvents; }
public ThroughputCalculator(ILoggingInfo loggingInfo, IMonitoringEvents monitoringEvents) { _loggingInfo = loggingInfo; _monitoringEvents = monitoringEvents; }