Beispiel #1
0
        public WalletService(IVaultServiceClient vaultServiceClient, IConfiguration configuration, ILogger logger, IUnitOfWork unitOfWork)
        {
            this.vaultServiceClient = vaultServiceClient;

            apiNetworkSection = configuration.GetSection(Constant.ApiNetwork);
            environment       = apiNetworkSection.GetValue <string>(Constant.Environment);

            this.logger = logger;

            this.unitOfWork = unitOfWork;
        }
Beispiel #2
0
 public UnitOfWork(IVaultServiceClient vaultServiceClient, ILogger logger)
 {
     SetTransactionRepository(new TransactionRepository(vaultServiceClient, logger));
     SetRedemptionRepository(new RedemptionRepository(vaultServiceClient, logger));
     SetKeySetRepository(new KeySetRepository(vaultServiceClient, logger));
     SetTrackRepository(new TrackRepository(vaultServiceClient, logger));
     SetReceiverRepository(new ReceiverRepository(vaultServiceClient, logger));
     SetPublicKeyAgreementRepository(new PublicKeyAgreementRepository(vaultServiceClient, logger));
     SetPurchaseRepository(new PurchaseRepository(vaultServiceClient, logger));
     SetSenderRepository(new SenderRepository(vaultServiceClient, logger));
     SetQueueRepository(new QueueRepository(vaultServiceClient, logger));
 }
Beispiel #3
0
        public VaultService(IVaultServiceClient vsc, IConfiguration configuration, IConsole cnsl, ILogger lgr)
        {
            vaultServiceClient = vsc;
            console            = cnsl;
            logger             = lgr;

            var vault_section = configuration.GetSection("vault");

            endpoint        = vault_section.GetValue <string>("endpoint");
            startTimeout    = vault_section.GetValue <int>("start_timeout");
            secretShares    = vault_section.GetValue <int>("num_secret_shares");
            secretThreshold = vault_section.GetValue <int>("num_secret_threshold");

            var children = configuration.GetChildren();

            vaultClientSettings = new VaultClientSettings(endpoint, null);
        }
 public TransactionRepository(IVaultServiceClient vaultServiceClient, ILogger logger)
     : base(StoreName.Transactions, vaultServiceClient, logger)
 {
 }
Beispiel #5
0
 public TrackRepository(IVaultServiceClient vaultServiceClient, ILogger logger)
     : base(StoreName.Track, vaultServiceClient, logger)
 {
 }
Beispiel #6
0
 public ReceiverRepository(IVaultServiceClient vaultServiceClient, ILogger logger)
     : base(StoreName.Receiver, vaultServiceClient, logger)
 {
 }
 public VaultUnsealCommand(IServiceProvider serviceProvider)
 {
     vaultServiceClient = serviceProvider.GetService<IVaultServiceClient>();
 }
Beispiel #8
0
 public PublicKeyAgreementRepository(IVaultServiceClient vaultServiceClient, ILogger logger)
     : base(StoreName.PublicKeyAgreement, vaultServiceClient, logger)
 {
 }
Beispiel #9
0
 public WalletController(IActorService actorService, IWalletService walletService, IVaultServiceClient vaultServiceClient, IUnitOfWork unitOfWork)
 {
     this.actorService       = actorService;
     this.walletService      = walletService;
     this.vaultServiceClient = vaultServiceClient;
     this.unitOfWork         = unitOfWork;
 }
Beispiel #10
0
 public RedemptionRepository(IVaultServiceClient vaultServiceClient, ILogger logger)
     : base(StoreName.Redemption, vaultServiceClient, logger)
 {
 }
Beispiel #11
0
 public WalletController(IActorService actorService, IWalletService walletService, IVaultServiceClient vaultServiceClient)
 {
     this.actorService       = actorService;
     this.walletService      = walletService;
     this.vaultServiceClient = vaultServiceClient;
 }
Beispiel #12
0
 public Repository(StoreName store, IVaultServiceClient vaultServiceClient, ILogger logger)
 {
     this.store = store;
     this.vaultServiceClient = vaultServiceClient;
     this.logger             = logger;
 }
Beispiel #13
0
 public KeySetRepository(IVaultServiceClient vaultServiceClient, ILogger logger)
     : base(StoreName.StoreKeys, vaultServiceClient, logger)
 {
     this.vaultServiceClient = vaultServiceClient;
     this.logger             = logger;
 }
Beispiel #14
0
 public QueueRepository(IVaultServiceClient vaultServiceClient, ILogger logger)
     : base(StoreName.Queue, vaultServiceClient, logger)
 {
 }
Beispiel #15
0
 public SenderRepository(IVaultServiceClient vaultServiceClient, ILogger logger)
     : base(StoreName.Sender, vaultServiceClient, logger)
 {
 }
Beispiel #16
0
 public PurchaseRepository(IVaultServiceClient vaultServiceClient, ILogger logger)
     : base(StoreName.Purchase, vaultServiceClient, logger)
 {
 }