Beispiel #1
0
        public static void ExecuteDumpPropertiesToCustomActiondata(ISessionWrapper session)
        {
            string transientProperties = getTransientProperties(session);

            string[] parts = transientProperties.Split(';');
            var      sb    = new StringBuilder();

            foreach (string key in parts)
            {
                if (String.IsNullOrEmpty(key))
                {
                    continue;
                }

                string value = session.Get(key);
                if (!string.IsNullOrEmpty(value))
                {
                    value = Convert.ToBase64String(Encoding.UTF8.GetBytes(value));
                }

                sb.AppendFormat("{0}={1};", key, value);
            }

            session.Set("CUSTOM_ACTION_DATA", sb.ToString());
        }