Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions csharp/StatHat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.IO;
using System.Text;
using System.Collections.Generic;
using System.Globalization;

namespace StatHat
{
Expand Down Expand Up @@ -71,7 +72,7 @@ public static void Counter(string key, string ukey, float count)
Dictionary<string, string> p = new Dictionary<string,string>();
p.Add("key", key);
p.Add("ukey", ukey);
p.Add("count", count.ToString());
p.Add("count", count.ToString(CultureInfo.InvariantCulture));
new FormPoster(Post.BaseUrl, "/c", p);
}

Expand All @@ -98,7 +99,7 @@ public static void Value(string key, string ukey, float value)
Dictionary<string, string> p = new Dictionary<string, string>();
p.Add("key", key);
p.Add("ukey", ukey);
p.Add("value", value.ToString());
p.Add("value", value.ToString(CultureInfo.InvariantCulture));
new FormPoster(Post.BaseUrl, "/v", p);
}
/// <summary>
Expand All @@ -123,7 +124,7 @@ public static void EzCounter(string ezkey, string stat, float count)
Dictionary<string, string> p = new Dictionary<string, string>();
p.Add("ezkey", ezkey);
p.Add("stat", stat);
p.Add("count", count.ToString());
p.Add("count", count.ToString(CultureInfo.InvariantCulture));
new FormPoster(Post.BaseUrl, "/ez", p);
}

Expand All @@ -149,7 +150,7 @@ public static void EzValue(string ezkey, string stat, float value)
Dictionary<string, string> p = new Dictionary<string, string>();
p.Add("ezkey", ezkey);
p.Add("stat", stat);
p.Add("value", value.ToString());
p.Add("value", value.ToString(CultureInfo.InvariantCulture));
new FormPoster(Post.BaseUrl, "/ez", p);
}

Expand All @@ -176,7 +177,7 @@ public static void Counter(string key, string ukey, float count, ReplyDelegate r
Dictionary<string, string> p = new Dictionary<string, string>();
p.Add("key", key);
p.Add("ukey", ukey);
p.Add("count", count.ToString());
p.Add("count", count.ToString(CultureInfo.InvariantCulture));
new FormPoster(Post.BaseUrl, "/c", p, replyDelegate);
}
/// <summary>
Expand All @@ -203,7 +204,7 @@ public static void Value(string key, string ukey, float value, ReplyDelegate rep
Dictionary<string, string> p = new Dictionary<string, string>();
p.Add("key", key);
p.Add("ukey", ukey);
p.Add("value", value.ToString());
p.Add("value", value.ToString(CultureInfo.InvariantCulture));
new FormPoster(Post.BaseUrl, "/v", p, replyDelegate);
}
/// <summary>
Expand All @@ -230,7 +231,7 @@ public static void EzCounter(string ezkey, string stat, float count, ReplyDelega
Dictionary<string, string> p = new Dictionary<string, string>();
p.Add("ezkey", ezkey);
p.Add("stat", stat);
p.Add("count", count.ToString());
p.Add("count", count.ToString(CultureInfo.InvariantCulture));
new FormPoster(Post.BaseUrl, "/ez", p, replyDelegate);
}

Expand Down Expand Up @@ -258,7 +259,7 @@ public static void EzValue(string ezkey, string stat, float value, ReplyDelegate
Dictionary<string, string> p = new Dictionary<string, string>();
p.Add("ezkey", ezkey);
p.Add("stat", stat);
p.Add("value", value.ToString());
p.Add("value", value.ToString(CultureInfo.InvariantCulture));
new FormPoster(Post.BaseUrl, "/ez", p, replyDelegate);
}

Expand Down