Example #1
0
        void InitRps()
        {
            RPS globalRPS = new RPS();

            Application["globalRPS"] = globalRPS;
            globalRPS.Initialize(null);
        }
Example #2
0
        public void Initialize()
        {
            RPS globalRPS = new RPS();

            HttpContext.Current.Application["globalRPS"] = globalRPS;

            globalRPS.Initialize(null);
        }
Example #3
0
 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;
 }