public bool? Ping(string instrumentationKey, DateTimeOffset timestamp)
{
var path = string.Format(CultureInfo.InvariantCulture, "ping?ikey={0}", Uri.EscapeUriString(instrumentationKey));
HttpWebResponse response = this.SendRequest(WebRequestMethods.Http.Post, path, stream => this.WritePingData(timestamp, stream));
if (response == null)
{
return null;
}
return ProcessResponse(response);
}