static MsgServiceClient() { //_channel = new Channel("127.0.0.1:40001", ChannelCredentials.Insecure); _channel = new Channel("192.168.99.109:40001", ChannelCredentials.Insecure); _client = new UserRpcService.UserRpcServiceClient(_channel); _client2 = new NotificationRpcService.NotificationRpcServiceClient(_channel); _client3 = new UserLogRpcService.UserLogRpcServiceClient(_channel); _client4 = new FuturesCompanyRpcService.FuturesCompanyRpcServiceClient(_channel); }
public UserService(UserRpcService.UserRpcServiceClient userClient, ILoggerFactory loggerFactory) { log = loggerFactory.CreateLogger <UserService>(); this.userClient = userClient; }