private static void connectToSF(SFDCScheduleRequest i_Request)
        {
            m_FSLClient = new FSLClient(i_Request.IsTest, i_Request.IsManaged, i_Request.OrganizationId);

            //SSMParameter clientIdParameter = SSMClient.Instance.GetParameter(SSMLibrary.Constants.FSL_SF_CLIENT_ID_PATH);
            //SSMParameter clientSecretParameter = SSMClient.Instance.GetParameter(SSMLibrary.Constants.FSL_SF_CLIENT_SECRET_PATH);

            string clientIdParameterStr =
                "3MVG9ZwZNrVajJ4juw533VQe450s71UT3VfQ.iBqsmmnxcogqAix1IusgXoHYMfR_xCRCWn9Gum5ICBFmeitF";
            string clientSecretParameterStr = "3591300309848784478";

            Stopwatch watchSFConnection = new Stopwatch();

            watchSFConnection.Start();
            m_FSLClient.Login(clientIdParameterStr, clientSecretParameterStr, i_Request.RefreshToken, i_Request.CustomSFDCAuthURL);
            watchSFConnection.Stop();
            if (!m_IsApexRest)
            {
                //LambdaLogger.Log("\nConnection to SF took: " + watchSFConnection.ElapsedMilliseconds +
                //                 " ms");
                m_IsApexRest  = true;
                m_SFLoginTime = watchSFConnection.ElapsedMilliseconds;
            }

            watchSFConnection.Reset();
        }
Beispiel #2
0
 public DataProcessor(FSLClient i_FSLClient, SFDCScheduleRequest i_Request)
 {
     m_FSLClient = i_FSLClient;
     m_Request   = i_Request as AppointmentBookingRequest;
     m_ABData    = new AppointmentBookingData(m_Request);
 }