public void Should_send_message() { var statsdClient = new StatsdClient("localhost", 1234); var r = new Result("name", System.DateTime.Now, "path"); r.SetValue(12); statsdClient.Send(r); }
private void SendSingle(string command) { try { StatsdClient.Send(command); } catch (Exception e) { Debug.WriteLine(e.Message); } }
public void Send() { try { StatsdClient.Send(string.Join("\n", Commands.ToArray())); Commands = new List <string>(); } catch (Exception e) { Debug.WriteLine(e.Message); } }
public void Send() { try { StatsdClient.Send(string.Join("\n", Commands.ToArray())); AtomicallyClearQueue(); } catch (Exception e) { Debug.WriteLine(e.Message); } }
public void Should_send_message() { var statsdClient = new StatsdClient("localhost", 1234); statsdClient.Send(new Result(12, "name", System.DateTime.Now, "path")); }