Exemplo n.º 1
0
        public WalletController(
            IBlockchainController blockchainController,
            ICertificateService certificateService,
            IMessagePublisher messagePublisher,
            IMessageSubscriber messageSubscriber,
            INetworkController networkController,
            INotificationService notificationService,
            ISettingsManager settingsManager)
        {
            this.blockchainController = blockchainController;
            this.certificateService   = certificateService;
            this.messagePublisher     = messagePublisher;
            this.messageSubscriber    = messageSubscriber;
            this.networkController    = networkController;
            this.notificationService  = notificationService;

            this.blockchainDataDirectoryPath = settingsManager.BlockchainDataDirectoryPath;

            this.localNodePort = settingsManager.LocalNodePort;
            this.localWSPort   = settingsManager.LocalWSPort;

            this.certificateCachePath = settingsManager.CertificateCachePath;

            this.certificateQueryResultCache = new Dictionary <ECPoint, CertificateQueryResult>();
        }
Exemplo n.º 2
0
        public WalletController(
            IBlockchainController blockchainController,
            ICertificateService certificateService,
            INotificationService notificationService,
            IMessagePublisher messagePublisher,
            IMessageSubscriber messageSubscriber)
        {
            this.blockchainController = blockchainController;
            this.certificateService   = certificateService;
            this.notificationService  = notificationService;
            this.messagePublisher     = messagePublisher;
            this.messageSubscriber    = messageSubscriber;

            this.messageSubscriber.Subscribe(this);

            this.accounts     = new List <AccountItem>();
            this.assets       = new List <AssetItem>();
            this.transactions = new List <TransactionItem>();

            this.certificateQueryResultCache = new Dictionary <ECPoint, CertificateQueryResult>();
        }