Beispiel #1
0
        public InteropFeature(
            IConnectionManager connectionManager,
            IConversionRequestCoordinationService conversionRequestCoordinationService,
            IConversionRequestFeeService conversionRequestFeeService,
            IConversionRequestRepository conversionRequestRepository,
            IETHCompatibleClientProvider ethCompatibleClientProvider,
            IFederationManager federationManager,
            IFullNode fullNode,
            InteropPoller interopPoller,
            InteropSettings interopSettings,
            Network network)
        {
            this.connectionManager = connectionManager;
            this.conversionRequestCoordinationService = conversionRequestCoordinationService;
            this.conversionRequestFeeService          = conversionRequestFeeService;
            this.conversionRequestRepository          = conversionRequestRepository;
            this.ethClientProvider = ethCompatibleClientProvider;
            this.federationManager = federationManager;
            this.interopPoller     = interopPoller;
            this.interopSettings   = interopSettings;
            this.network           = network;

            var payloadProvider = (PayloadProvider)fullNode.Services.ServiceProvider.GetService(typeof(PayloadProvider));

            payloadProvider.AddPayload(typeof(ConversionRequestPayload));
            payloadProvider.AddPayload(typeof(FeeProposalPayload));
            payloadProvider.AddPayload(typeof(FeeAgreePayload));
        }
 public InteropController(
     Network network,
     IConversionRequestCoordinationService conversionRequestCoordinationService,
     IConversionRequestRepository conversionRequestRepository,
     IETHCompatibleClientProvider ethCompatibleClientProvider,
     IFederationManager federationManager,
     InteropSettings interopSettings)
 {
     this.conversionRequestCoordinationService = conversionRequestCoordinationService;
     this.conversionRequestRepository          = conversionRequestRepository;
     this.ethCompatibleClientProvider          = ethCompatibleClientProvider;
     this.federationManager = federationManager;
     this.interopSettings   = interopSettings;
     this.logger            = LogManager.GetCurrentClassLogger();
     this.network           = network;
 }
        public InteropBehavior(
            Network network,
            IConversionRequestCoordinationService conversionRequestCoordinationService,
            IConversionRequestFeeService conversionRequestFeeService,
            IConversionRequestRepository conversionRequestRepository,
            IETHCompatibleClientProvider ethClientProvider,
            IFederationManager federationManager)
        {
            this.conversionRequestCoordinationService = conversionRequestCoordinationService;
            this.conversionRequestFeeService          = conversionRequestFeeService;
            this.conversionRequestRepository          = conversionRequestRepository;
            this.ethClientProvider = ethClientProvider;
            this.federationManager = federationManager;
            this.network           = network;

            this.logger = LogManager.GetCurrentClassLogger();
        }