Exemplo n.º 1
0
        public void authenticate()
        {
            #region Authenticate To Application
            //Log on to application if required
            if (mAuthenticationType != 0)
            {
                //Forms Logon
                if (mAuthenticationType == 1)
                {
                    sessionFormsLogon objSessionFormsLogon = new sessionFormsLogon();
                    objSessionFormsLogon.sessionId = objSession.id;
                    objSessionFormsLogon.populateBySessionId();

                    objFormSubmitter.login(objSessionFormsLogon.totalFormSubmission, objSessionFormsLogon.loginPageUrl);
                }
                //Raw Submission
                else if (mAuthenticationType == 2)
                {
                    sessionRawLogon objSessionRawLogon = new sessionRawLogon();
                    objSessionRawLogon.sessionId = objSession.id;
                    objSessionRawLogon.populateBySessionId();

                    objFormSubmitter.login(objSessionRawLogon.rawSubmission, objSessionRawLogon.loginPageUrl);
                }
            }

            #endregion
        }
Exemplo n.º 2
0
        public void authenticate()
        {
            #region Authenticate To Application
            //Log on to application if required
            if (mAuthenticationType != 0)
            {
                //Forms Logon
                if (mAuthenticationType==1)
                {
                    sessionFormsLogon objSessionFormsLogon=new sessionFormsLogon();
                    objSessionFormsLogon.sessionId=objSession.id;
                    objSessionFormsLogon.populateBySessionId();

                    objFormSubmitter.login(objSessionFormsLogon.totalFormSubmission, objSessionFormsLogon.loginPageUrl);

                }
                    //Raw Submission
                else if (mAuthenticationType==2)
                {
                    sessionRawLogon objSessionRawLogon=new sessionRawLogon();
                    objSessionRawLogon.sessionId=objSession.id;
                    objSessionRawLogon.populateBySessionId();

                    objFormSubmitter.login(objSessionRawLogon.rawSubmission, objSessionRawLogon.loginPageUrl);

                }

            }

            #endregion
        }