public BlockchainMonitorService(IBlockchainClientService clientService, IConfiguration configuration, ILoggerFactory loggerFactory, IServiceScopeFactory scopeFactory) { _dbContext = scopeFactory.CreateScopedService <LocalPersistenceContext>(); _configuration = configuration.GetConfiguration <BlockchainConfiguration>(); _logger = loggerFactory.CreateLogger(GetType()); _clientService = clientService; }
public ChannelMessageLoggingService(IServiceScopeFactory scopeFactory, IPeerService peerService, IChannelService channelService, IConfiguration configuration) { _localPersistenceContext = scopeFactory.CreateScopedService <LocalPersistenceContext>(); _peerService = peerService; _channelService = channelService; _persist = configuration.GetConfiguration <ChannelConfiguration>().PersistChannelLogs; }
public ChannelService(ILoggerFactory loggerFactory, IConfiguration configuration, IServiceScopeFactory scopeFactory) { _logger = loggerFactory.CreateLogger(GetType()); _dbContext = scopeFactory.CreateScopedService <LocalPersistenceContext>(); }
public PersistenceService(LocalPersistenceContext localPersistenceContext, NetworkPersistenceContext networkPersistenceContext) { _localPersistenceContext = localPersistenceContext; _networkPersistenceContext = networkPersistenceContext; }
public ChannelLoggingService(LocalPersistenceContext localPersistenceContext, IConfiguration configuration, ILoggerFactory loggerFactory) { _localPersistenceContext = localPersistenceContext; _logger = loggerFactory.CreateLogger(GetType()); _persist = configuration.GetConfiguration <ChannelConfiguration>().PersistChannelLogs; }