Example #1
0
 public NetworkViewService(ILoggerFactory loggerFactory, IServiceScopeFactory scopeFactory, IConfiguration configuration)
 {
     _loggerFactory = loggerFactory;
     _logger        = loggerFactory.CreateLogger(GetType());
     _configuration = configuration.GetConfiguration <NetworkViewConfiguration>();
     _dbContext     = scopeFactory.CreateScopedService <NetworkPersistenceContext>();
 }
 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;
 }
Example #4
0
 public ChannelService(ILoggerFactory loggerFactory, IConfiguration configuration, IServiceScopeFactory scopeFactory)
 {
     _logger    = loggerFactory.CreateLogger(GetType());
     _dbContext = scopeFactory.CreateScopedService <LocalPersistenceContext>();
 }