public static void MssOnSessionStart(HeContext heContext) { int oldCurrentESpaceId = heContext.CurrentESpaceId; try { heContext.CurrentESpaceId = ssBusiness_CS.Global.eSpaceId; if (RuntimePlatformUtils.TestAndSetProducerSession("Business_CS")) { ssBusiness_CS.Actions.ActionOnSessionStart(heContext); } } finally { heContext.CurrentESpaceId = oldCurrentESpaceId; } }