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