Connect.DNN.Modules.SkinControls.Services.Authentication.Live.LiveClient.GetExpiry C# (CSharp) Method

GetExpiry() protected method

protected GetExpiry ( string responseText ) : System.TimeSpan
responseText string
return System.TimeSpan
        protected override TimeSpan GetExpiry(string responseText)
        {
            var jsonSerializer = new JavaScriptSerializer();
            var tokenDictionary = jsonSerializer.DeserializeObject(responseText) as Dictionary<string, object>;

            return new TimeSpan(0, 0, Convert.ToInt32(tokenDictionary["expires_in"]));
        }