void InitRps() { RPS globalRPS = new RPS(); Application["globalRPS"] = globalRPS; globalRPS.Initialize(null); }
public void Initialize() { RPS globalRPS = new RPS(); HttpContext.Current.Application["globalRPS"] = globalRPS; globalRPS.Initialize(null); }
public static void Initialize(string virtualDirectoryNameParam, bool sslOffloadedParam) { if (!string.IsNullOrEmpty(virtualDirectoryNameParam) && (virtualDirectoryNameParam.StartsWith("/", StringComparison.OrdinalIgnoreCase) || virtualDirectoryNameParam.EndsWith("/", StringComparison.OrdinalIgnoreCase))) { throw new ArgumentException("virtualDirectoryNameParam should not contain leading or trailing slashes", "virtualDirectoryNameParam"); } if (!string.IsNullOrEmpty(virtualDirectoryNameParam)) { LiveIdAuthentication.virtualDirectoryNameWithLeadingSlash = "/" + virtualDirectoryNameParam; } try { RPS rps = new RPS(); rps.Initialize(null); LiveIdAuthentication.rpsOrgIdSession = rps; } catch (COMException e) { LiveIdAuthentication.rpsOrgIdSession = null; LiveIdErrorHandler.ThrowRPSException(e); } LiveIdAuthentication.sslOffloaded = sslOffloadedParam; }