コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
        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");
                }
            });
        }
コード例 #4
0
 public GetCancelledPayment(IMonitoringEvents monitoringEvents)
 {
     _monitoringEvents = monitoringEvents;
 }
コード例 #5
0
 public CancellationsDueToOrphan(IMonitoringEvents monitoringEvents)
 {
     _monitoringEvents = monitoringEvents;
 }
コード例 #6
0
 public CancellationsDueToOrphan(IMonitoringEvents monitoringEvents)
 {
     _monitoringEvents = monitoringEvents;
 }
コード例 #7
0
 public GetCancelledPayment(IMonitoringEvents monitoringEvents)
 {
     _monitoringEvents = monitoringEvents;
 }
コード例 #8
0
 public PspCommunicationFailures(IMonitoringEvents monitoringEvents)
 {
     _monitoringEvents = monitoringEvents;
 }
コード例 #9
0
 public ThroughputCalculator(ILoggingInfo loggingInfo, IMonitoringEvents monitoringEvents)
 {
     _loggingInfo = loggingInfo;
     _monitoringEvents = monitoringEvents;
 }
コード例 #10
0
 public ThroughputCalculator(ILoggingInfo loggingInfo, IMonitoringEvents monitoringEvents)
 {
     _loggingInfo      = loggingInfo;
     _monitoringEvents = monitoringEvents;
 }
コード例 #11
0
 public PspCommunicationFailures(IMonitoringEvents monitoringEvents)
 {
     _monitoringEvents = monitoringEvents;
 }