Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagec#
linenumberstrue
using FuseIT.Sitecore.SalesforceConnector;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FuseIT_Demo
{
    public class SitecoreSalesforceSessionSingleton : SalesforceSessionSingleton
    {
        private SitecoreSalesforceSessionSingleton()
        : base(null, "S4SConnString")
        {
        }

        /// 
        /// Get the singleton instance of the Salesforce Session.
        /// 
        public static SalesforceSession SessionInstance
        {
            get
            {
                SitecoreSalesforceSessionSingleton singleton = new SitecoreSalesforceSessionSingleton();
                return singleton.Instance;
            }
            set
            {
                // This is only required if you want code outside the singleton to be able to construct the session
                SitecoreSalesforceSessionSingleton singleton = new SitecoreSalesforceSessionSingleton();
                singleton.SetNewInstance(value);
            }
        }
    }
}

Next Step

Identify And Push Visitor Save ActionCongratulations, you have finished installing this option.

Steps

Child pages (Children Display)
alltrue
depth2
pageS4S Web Forms for Marketers (Optional)