Beispiel #1
0
 public TransactionRecovery(NTccTransactionOptions nTccTransactionOptions, ITransactionRepository transactionRepository
                            , IServiceScopeFactory serviceScopeFactory, ILogger <TransactionRecovery> logger)
 {
     _options = nTccTransactionOptions;
     _transactionRepository = transactionRepository;
     _serviceScopeFactory   = serviceScopeFactory;
     _logger = logger;
 }
Beispiel #2
0
        public TransactionRecoveryProcessingServer(ILogger <TransactionRecoveryProcessingServer> logger, IServiceProvider serviceProvider
                                                   , NTccTransactionOptions nTccTransactionOptions, ITransactionRecovery transactionRecovery)
        {
            _logger              = logger;
            _serviceProvider     = serviceProvider;
            _selector            = serviceProvider.GetService <MethodMatcherCache>();
            _options             = nTccTransactionOptions;
            _transactionRecovery = transactionRecovery;

            _cts = new CancellationTokenSource();
        }