Exemplo n.º 1
0
        public async void SendMessage(string message)
        {
            _logger.LogDebug($"SendMessage: \"{message}\"");
            var hubState = _bot.State.GetHub(_hub);

            try {
                await _bot.SendAsync(hubState, message);
            } catch (Exception e) {
                _logger.LogError($"SendMessage: exception: \"{e}\"");
            }
        }