public static bool ValidateWithSlidingWindow(RPSTicket rpsTicket, TimeSpan slidingWindow) { RPSPropBag rpspropBag = null; try { rpspropBag = new RPSPropBag(LiveIdAuthentication.rpsOrgIdSession); rpspropBag["SlidingWindow"] = slidingWindow.TotalSeconds; if (!rpsTicket.Validate(rpspropBag)) { int num = (int)rpspropBag["ReasonHR"]; if (num == -2147184087) { return(false); } } } catch (COMException e) { LiveIdErrorHandler.ThrowRPSException(e); } finally { if (rpspropBag != null) { rpspropBag.Dispose(); } } return(true); }