Hi,
I am not happy with the current way to retrieve the X-RateLimit with the current Release.
As a result I checked a solution allowing you to retrieve the DateTime of the previous request.
Linvi
I am not happy with the current way to retrieve the X-RateLimit with the current Release.
As a result I checked a solution allowing you to retrieve the DateTime of the previous request.
public DateTime ServerDateTimeOfPreviousRequest
{
get
{
if (_lastHeadersResult == null)
{
throw new Exception("You cannot access the server datetime before performing any HttpRequest");
}
if (_lastHeadersResult["Date"] == null)
{
throw new Exception("Twitter didn't provide the server time information during the previous HttpRequest");
}
return DateTime.Parse(_lastHeadersResult["Date"]);
}
}
Kind Regards,Linvi