public ServerApiService(HttpClient httpClient, Orders.OrdersClient ordersGrpcClient) { _httpClient = httpClient; _httpClient.BaseAddress = new Uri("https://localhost:64292"); _ordersGrpcClient = ordersGrpcClient; }
public OrderRpcService(IOptions <OrderRpcServcieSetting> setting, IHttpContextAccessor httpContext) { _setting = setting.Value; _channel = GrpcServiceHelper.CreateAuthenticatedChannel(_setting.OrderServcieHost, httpContext); _client = new Orders.OrdersClient(_channel); }
public HistoryGrpcClient(string serverGrpcUrl) : base(serverGrpcUrl) { Monitoring = new MonitoringService.MonitoringServiceClient(_channel); Orders = new Orders.OrdersClient(_channel); Trades = new Trades.TradesClient(_channel); History = new GrpcContract.History.History.HistoryClient(_channel); }