public RobotService(ILogger <RobotService> logger, IOptions <AppSettings> appSettings) { _logger = logger; var channel = GrpcChannel.ForAddress(appSettings.Value.Urls.TeamsUrl); _client = new Robot.RobotClient(channel); }
public ControlHubClient(string host = "localhost", int port = 50051) { this.Host = host; this.Port = port; this.channel = new Channel(this.Host + ":" + this.Port, ChannelCredentials.Insecure); RobotClient = new Robot.RobotClient(channel); }