Exemplo n.º 1
0
        private void SetEncryptProperty(GXProperties properties, String prop)
        {
            String value = properties.Get(prop);

            if (string.IsNullOrEmpty(value))
            {
                value = "";
            }
            value = CryptoImpl.Encrypt(value);
            properties.Set(prop, value);
        }
Exemplo n.º 2
0
        public Message GetBaseMessage(MessagePropertyFilter mpf)
        {
            int           i  = 0;
            StringBuilder sb = new StringBuilder();

            if (properties.Count > 0)
            {
                bool hasUserProps = false;
                sb.Append("[GxPtys:]");
                for (i = 0; i < properties.Count; i++)
                {
                    if (!canAddMSMQPropertiesToGet(mpf, properties.GetKey(i), properties.Get(properties.GetKey(i))))
                    {
                        sb.Append(properties.GetKey(i) + "=" + properties.Get(properties.GetKey(i)) + ";");
                        hasUserProps = true;
                    }
                }
                if (hasUserProps)
                {
                    message.Body = Text + sb.ToString();
                }
            }
            return(message);
        }