예제 #1
0
        protected override T OnWebRequestSucceed <T>(HttpResponseMessage response)
        {
            var obj = base.OnWebRequestSucceed <T>(response);

            if (obj is IRateLimit rateLimitObject)
            {
                rateLimitObject.RateLimit = RateLimit.FromHeaders(response.Headers);
            }

            return(obj);
        }