Esempio n. 1
0
 public WalletManagerClient(string serverGrpcUrl) : base(serverGrpcUrl)
 {
     Monitoring = new Monitoring.MonitoringClient(Channel);
     Wallets    = new Wallets.WalletsClient(Channel);
     Balances   = new Balances.BalancesClient(Channel);
     Operations = new Operations.OperationsClient(Channel);
     Transfers  = new Transfers.TransfersClient(Channel);
 }
        public ServiceNameClient(string serverGrpcUrl)
        {
            AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);

            _channel = GrpcChannel.ForAddress(serverGrpcUrl);

            Monitoring = new Monitoring.MonitoringClient(_channel);
        }
        public VaultApiClient(string apiKey, string serverGrpcUrl)
        {
            AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);

            var interceptor = GrpcChannel.ForAddress(serverGrpcUrl)
                              .Intercept(metadata =>
            {
                metadata.Add("Authorization", $"Bearer {apiKey}");
                return(metadata);
            });

            Monitoring = new Monitoring.MonitoringClient(interceptor);
            TransferSigningRequests    = new TransferSigningRequests.TransferSigningRequestsClient(interceptor);
            TransferValidationRequests = new TransferValidationRequests.TransferValidationRequestsClient(interceptor);
            Wallets = new Wallets.WalletsClient(interceptor);
        }
Esempio n. 4
0
 public HftApiClient(string serverGrpcUrl) : base(serverGrpcUrl)
 {
     Monitoring     = new Monitoring.MonitoringClient(Channel);
     PrivateService = new PrivateService.PrivateServiceClient(Channel);
     PublicService  = new PublicService.PublicServiceClient(Channel);
 }
 public AntaresClientApiClient(string serverGrpcUrl) : base(serverGrpcUrl)
 {
     Monitoring = new Monitoring.MonitoringClient(Channel);
 }
Esempio n. 6
0
 public ServiceNameReaderClient(string serverGrpcUrl) : base(serverGrpcUrl)
 {
     Monitoring    = new Monitoring.MonitoringClient(Channel);
     DataReaderApi = new DataReaderApi.DataReaderApiClient(Channel);
 }
 public ServiceNameWriterClient(string serverGrpcUrl) : base(serverGrpcUrl)
 {
     Monitoring = new Monitoring.MonitoringClient(Channel);
     ManagerApi = new ManagerApi.ManagerApiClient(Channel);
 }
 public ExternalPriceCollectorClient(string serverGrpcUrl) : base(serverGrpcUrl)
 {
     Monitoring = new Monitoring.MonitoringClient(Channel);
 }