/// <summary> /// Send message to dweet /// </summary> /// <param name="message"></param> protected override void Send(EventMessage message) { try { using (var httpclient = new HttpClient()) { httpclient.PostAsync(_dweetUrl, new StringContent(message.Serialize(), Encoding.UTF8, "application/json")); } } catch (Exception exc) { _log.Error(exc, "Could not send message to Dweet due to error, please check."); } }
/// <summary> /// Send frame /// </summary> /// <param name="message">Message to be send to this runner</param> protected override void Send(EventMessage message) => _socket.SendMoreFrame(message.Type.ToString()) .SendFrame(message.Serialize());