/// <summary>
 /// Add a stat value for reporting.
 /// </summary>
 /// <param name="key">The stat name.</param>
 /// <param name="value">The stat value.</param>
 /// <param name="aggregationMethod">How multiple values should be treated.</param>
 public void AddStat(string key, float value, StatAggregationMethod aggregationMethod)
 {
     using (var msg = new OutgoingMessage())
     {
         msg.WriteString(key);
         msg.WriteFloat32(value);
         msg.WriteInt32((int)aggregationMethod);
         QueueMessageToSend(msg);
     }
 }