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);
 }
Exemplo n.º 2
0
 private void SendSingle(string command)
 {
     try
     {
         StatsdClient.Send(command);
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
     }
 }
Exemplo n.º 3
0
 public void Send()
 {
     try
     {
         StatsdClient.Send(string.Join("\n", Commands.ToArray()));
         Commands = new List <string>();
     }
     catch (Exception e)
     {
         Debug.WriteLine(e.Message);
     }
 }
Exemplo n.º 4
0
 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"));
 }