Exemplo n.º 1
0
        public RobotService(ILogger <RobotService> logger, IOptions <AppSettings> appSettings)
        {
            _logger = logger;

            var channel = GrpcChannel.ForAddress(appSettings.Value.Urls.TeamsUrl);

            _client = new Robot.RobotClient(channel);
        }
Exemplo n.º 2
0
        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);
        }