public GRPCChannelPoolManager(ConsulRemoteServiceConfig config, ClientAgentOption option) { this.clientConfig = config; this.ClientAgentOption = option; InitGrpcChannel(); }
public ClientAgent(ConsulRemoteServiceConfig config, ClientAgentOption option = null) : this( option ?? new ClientAgentOption()) { ChannelPoolManager = new GRPCChannelPoolManager(config, option); }
/// <summary> /// create Client Agent for GrpcClient /// </summary> /// <param name="connectionString">serviceName=followme.srv.xxx;freshInterval=100;consulAddress=ip:port;cosul..</param> /// <param name="option"></param> public ClientAgent(string connectionString, ClientAgentOption option = null) : this(connectionString.ParseConnectionString <ConsulRemoteServiceConfig>(), option) { }
private ClientAgent(ClientAgentOption agentOption) { this._clientAgentOption = agentOption; }