public WeChatPayPaymentServiceProvider(
     ServiceProviderPayService serviceProviderPayService,
     ISettingProvider settingProvider,
     IGuidGenerator guidGenerator,
     ICurrentTenant currentTenant,
     IUnitOfWorkManager unitOfWorkManager,
     ILocalEventBus localEventBus,
     IWeChatPayFeeConverter weChatPayFeeConverter,
     IPaymentManager paymentManager,
     IPaymentRecordRepository paymentRecordRepository,
     IPaymentOpenIdProvider paymentOpenIdProvider,
     IPaymentRepository paymentRepository)
 {
     _serviceProviderPayService = serviceProviderPayService;
     _settingProvider           = settingProvider;
     _guidGenerator             = guidGenerator;
     _currentTenant             = currentTenant;
     _unitOfWorkManager         = unitOfWorkManager;
     _localEventBus             = localEventBus;
     _weChatPayFeeConverter     = weChatPayFeeConverter;
     _paymentManager            = paymentManager;
     _paymentRecordRepository   = paymentRecordRepository;
     _paymentOpenIdProvider     = paymentOpenIdProvider;
     _paymentRepository         = paymentRepository;
 }
Beispiel #2
0
 public ConsensusRequestMiningEventHandlerTests()
 {
     _blockchainService = GetRequiredService <IBlockchainService>();
     _consensusRequestMiningEventHandler = GetRequiredService <ConsensusRequestMiningEventHandler>();
     _localEventBus = GetRequiredService <ILocalEventBus>();
     _testContext   = GetRequiredService <KernelConsensusRequestMiningTestContext>();
 }
Beispiel #3
0
        public MinerService(IMiningService miningService, ITxHub txHub)
        {
            _miningService = miningService;
            _txHub         = txHub;

            EventBus = NullLocalEventBus.Instance;
        }
 public GrpcNetworkServerTests()
 {
     _networkServer = GetRequiredService <IAElfNetworkServer>();
     _eventBus      = GetRequiredService <ILocalEventBus>();
     _peerPool      = GetRequiredService <IPeerPool>();
     _testContext   = GetRequiredService <NetworkTestContext>();
 }
 public UnitOfWorkEventPublisher(
     ILocalEventBus localEventBus,
     IDistributedEventBus distributedEventBus)
 {
     _localEventBus       = localEventBus;
     _distributedEventBus = distributedEventBus;
 }
Beispiel #6
0
 public ClientAppService(
     IGuidGenerator guidGenerator,
     IWeixinAppService weixinAppService,
     IMallShopLookupService shopLookupService,
     IMallShopRepository shopRepository,
     IReadOnlyRepository <Address, Guid> addressRepository,
     IRepository <ProductOrder, Guid> orderRepository,
     IRepository <TenPayNotify, Guid> tenpayRepository,
     IPayOrderRepository payOrderRepository,
     ISettingProvider setting,
     IAppProvider appProvider,
     IHttpContextAccessor httpContextAccessor,
     ILocalEventBus eventBus,
     ICapPublisher capBus
     )
 {
     _guidGenerator       = guidGenerator;
     _weixinAppService    = weixinAppService;
     _shopLookupService   = shopLookupService;
     _shopRepository      = shopRepository;
     _addressRepository   = addressRepository;
     _orderRepository     = orderRepository;
     _tenpayRepository    = tenpayRepository;
     _payOrderRepository  = payOrderRepository;
     _setting             = setting;
     _appProvider         = appProvider;
     _httpContextAccessor = httpContextAccessor;
     _eventBus            = eventBus;
     _capBus = capBus;
 }
 public TxHubTests()
 {
     _txHub             = GetRequiredService <ITxHub>();
     _blockchainService = GetRequiredService <IBlockchainService>();
     _kernelTestHelper  = GetRequiredService <KernelTestHelper>();
     _eventBus          = GetRequiredService <ILocalEventBus>();
 }
Beispiel #8
0
 public IndexModel(
     IOptions <SettingManagementPageOptions> options,
     ILocalEventBus localEventBus)
 {
     LocalEventBus = localEventBus;
     Options       = options.Value;
 }
Beispiel #9
0
 public GrpcNetworkServerTests()
 {
     _networkServer       = GetRequiredService <IAElfNetworkServer>();
     _eventBus            = GetRequiredService <ILocalEventBus>();
     _peerPool            = GetRequiredService <IPeerPool>();
     _reconnectionService = GetRequiredService <IReconnectionService>();
 }
Beispiel #10
0
 public CrossChainGrpcServerBase(ICrossChainExtraDataExtractor crossChainExtraDataExtractor,
                                 ICrossChainDataProvider crossChainDataProvider, IBlockchainService blockchainService)
 {
     _crossChainExtraDataExtractor = crossChainExtraDataExtractor;
     _crossChainDataProvider       = crossChainDataProvider;
     _blockchainService            = blockchainService;
     LocalEventBus = NullLocalEventBus.Instance;
 }
 public TransactionMethodValidationProviderTests()
 {
     _transactionMethodValidationProvider = GetRequiredService <TransactionMethodValidationProvider>();
     _transactionOptions = GetRequiredService <IOptionsMonitor <TransactionOptions> >().CurrentValue;
     _blockchainService  = GetRequiredService <IBlockchainService>();
     _kernelTestHelper   = GetRequiredService <KernelTestHelper>();
     _eventBus           = GetRequiredService <ILocalEventBus>();
 }
Beispiel #12
0
        public TransactionAppService(ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService,
                                     IBlockchainService blockchainService)
        {
            _transactionReadOnlyExecutionService = transactionReadOnlyExecutionService;
            _blockchainService = blockchainService;

            LocalEventBus = NullLocalEventBus.Instance;
        }
Beispiel #13
0
 public BlockchainNodeContextServiceTests()
 {
     _blockchainNodeContextService = GetRequiredService <IBlockchainNodeContextService>();
     _kernelTestHelper             = GetRequiredService <KernelTestHelper>();
     _blockchainService            = GetRequiredService <IBlockchainService>();
     _kernelNodeTestContext        = GetRequiredService <KernelNodeTestContext>();
     _localEventBus = GetRequiredService <ILocalEventBus>();
 }
 public ContractEventDiscoveryService(IBlockchainService blockchainService,
                                      ITransactionResultQueryService transactionResultQueryService)
 {
     _blockchainService             = blockchainService;
     _transactionResultQueryService = transactionResultQueryService;
     LocalEventBus = NullLocalEventBus.Instance;
     Logger        = NullLogger <ContractEventDiscoveryService <T> > .Instance;
 }
Beispiel #15
0
 public GrpcServerServiceTests()
 {
     _networkServer     = GetRequiredService <IAElfNetworkServer>();
     _service           = GetRequiredService <GrpcServerService>();
     _blockchainService = GetRequiredService <IBlockchainService>();
     _peerPool          = GetRequiredService <IPeerPool>();
     _eventBus          = GetRequiredService <ILocalEventBus>();
 }
 public FullBlockchainServiceTests()
 {
     _fullBlockchainService = GetRequiredService <FullBlockchainService>();
     _transactionManager    = GetRequiredService <ITransactionManager>();
     _chainManager          = GetRequiredService <IChainManager>();
     _kernelTestHelper      = GetRequiredService <KernelTestHelper>();
     _eventBus = GetRequiredService <ILocalEventBus>();
 }
Beispiel #17
0
 public BlockExecutingService(ITransactionExecutingService executingService, IBlockManager blockManager,
                              IBlockGenerationService blockGenerationService)
 {
     _executingService       = executingService;
     _blockManager           = blockManager;
     _blockGenerationService = blockGenerationService;
     EventBus = NullLocalEventBus.Instance;
 }
 public TransactionExecutionValidationProvider(
     IPlainTransactionExecutingService plainTransactionExecutingService,
     IBlockchainService blockchainService, IOptionsMonitor <TransactionOptions> transactionOptionsMonitor)
 {
     _plainTransactionExecutingService = plainTransactionExecutingService;
     _transactionOptions = transactionOptionsMonitor.CurrentValue;
     LocalEventBus       = NullLocalEventBus.Instance;
 }
Beispiel #19
0
        public FeatureManagementModal(
            IFeatureAppService featureAppService,
            ILocalEventBus localEventBus)
        {
            ObjectMapperContext = typeof(AbpFeatureManagementWebModule);

            FeatureAppService = featureAppService;
            LocalEventBus     = localEventBus;
        }
Beispiel #20
0
 public TransactionResultServiceTests()
 {
     _kernelTestHelper            = GetRequiredService <KernelTestHelper>();
     _blockchainService           = GetRequiredService <IBlockchainService>();
     _transactionResultService    = GetRequiredService <ITransactionResultService>();
     _transactionResultManager    = GetRequiredService <ITransactionResultManager>();
     _transacionBlockIndexManager = GetRequiredService <ITransactionBlockIndexManager>();
     _localEventBus = GetRequiredService <ILocalEventBus>();
 }
Beispiel #21
0
 public LocalParallelTransactionExecutingService(ITransactionGrouper grouper,
                                                 IPlainTransactionExecutingService planTransactionExecutingService,
                                                 ISystemTransactionExtraDataProvider systemTransactionExtraDataProvider)
 {
     _grouper = grouper;
     _planTransactionExecutingService = planTransactionExecutingService;
     EventBus = NullLocalEventBus.Instance;
     Logger   = NullLogger <LocalParallelTransactionExecutingService> .Instance;
 }
Beispiel #22
0
    public PermissionManagementModal(
        IPermissionAppService permissionAppService,
        ILocalEventBus localEventBus)
    {
        ObjectMapperContext = typeof(AbpPermissionManagementWebModule);

        PermissionAppService = permissionAppService;
        LocalEventBus        = localEventBus;
    }
 public ChainCreationService(IBlockchainService blockchainService, IBlockExecutingService blockExecutingService,
                             IBlockchainExecutingService blockchainExecutingService)
 {
     _blockchainService          = blockchainService;
     _blockExecutingService      = blockExecutingService;
     _blockchainExecutingService = blockchainExecutingService;
     Logger        = NullLogger <ChainCreationService> .Instance;
     LocalEventBus = NullLocalEventBus.Instance;
 }
Beispiel #24
0
 public TxHub(ITransactionManager transactionManager, IBlockchainService blockchainService,
              IOptionsSnapshot <TransactionOptions> transactionOptions)
 {
     Logger = NullLogger <TxHub> .Instance;
     _transactionManager = transactionManager;
     _blockchainService  = blockchainService;
     LocalEventBus       = NullLocalEventBus.Instance;
     _transactionOptions = transactionOptions.Value;
 }
 public SyncStateServiceTests()
 {
     _syncStateService  = GetRequiredService <ISyncStateService>();
     _peerPool          = GetRequiredService <IPeerPool>();
     _syncStateProvider = GetRequiredService <INodeSyncStateProvider>();
     _osTestHelper      = GetService <OSTestHelper>();
     _blockchainService = GetRequiredService <IBlockchainService>();
     _eventBus          = GetRequiredService <ILocalEventBus>();
 }
 public LocalParallelTransactionExecutingService(ITransactionGrouper grouper,
                                                 ITransactionResultService transactionResultService,
                                                 ILocalTransactionExecutingService plainExecutingService)
 {
     _grouper = grouper;
     _plainExecutingService    = plainExecutingService;
     _transactionResultService = transactionResultService;
     EventBus = NullLocalEventBus.Instance;
     Logger   = NullLogger <LocalParallelTransactionExecutingService> .Instance;
 }
 public LocalDistributedEventBus(
     ILocalEventBus localEventBus,
     IServiceScopeFactory serviceScopeFactory,
     IOptions <RocketDistributedEventBusOptions> distributedEventBusOptions)
 {
     _localEventBus      = localEventBus;
     ServiceScopeFactory = serviceScopeFactory;
     RocketDistributedEventBusOptions = distributedEventBusOptions.Value;
     Subscribe(distributedEventBusOptions.Value.Handlers);
 }
 public IrreversibleBlockRelatedEventsDiscoveryService(IBlockchainService blockchainService,
                                                       ITransactionResultQueryService transactionResultQueryService,
                                                       ISmartContractAddressService smartContractAddressService)
 {
     _blockchainService             = blockchainService;
     _transactionResultQueryService = transactionResultQueryService;
     _smartContractAddressService   = smartContractAddressService;
     LocalEventBus = NullLocalEventBus.Instance;
     Logger        = NullLogger <IrreversibleBlockRelatedEventsDiscoveryService> .Instance;
 }
 public ConnectionServiceTests()
 {
     _connectionService       = GetRequiredService <IConnectionService>();
     _peerPool                = GetRequiredService <IPeerPool>();
     _blackListedPeerProvider = GetRequiredService <IBlackListedPeerProvider>();
     _eventBus                = GetRequiredService <ILocalEventBus>();
     _blockchainService       = GetRequiredService <IBlockchainService>();
     _handshakeProvider       = GetRequiredService <IHandshakeProvider>();
     _reconnectionService     = GetRequiredService <IReconnectionService>();
 }
Beispiel #30
0
 public LocalDistributedEventBus(
     ILocalEventBus localEventBus,
     IServiceProvider serviceProvider,
     IOptions <DistributedEventBusOptions> distributedEventBusOptions)
 {
     _localEventBus             = localEventBus;
     ServiceProvider            = serviceProvider;
     DistributedEventBusOptions = distributedEventBusOptions.Value;
     Subscribe(distributedEventBusOptions.Value.Handlers);
 }