Esempio n. 1
0
        /// <summary>
        /// Creates and adds new 'Post To HTTP' action to UserMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="url">HTTP URL where to post message.</param>
        public UserMessageRuleAction_PostToHttp Add_PostToHttp(string description, string url)
        {
            UserMessageRuleAction_PostToHttp action = new UserMessageRuleAction_PostToHttp(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                url
                );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return(action);
        }
        /// <summary>
        /// Creates and adds new 'Post To HTTP' action to UserMessageRuleActionCollection collection.
        /// </summary>
        /// <param name="description">Action description text.</param>
        /// <param name="url">HTTP URL where to post message.</param>
        public UserMessageRuleAction_PostToHttp Add_PostToHttp(string description,string url)
        {
            UserMessageRuleAction_PostToHttp action = new UserMessageRuleAction_PostToHttp(
                m_pRule,
                this,
                Guid.NewGuid().ToString(),
                description,
                url
            );

            // Add action to rule
            Add(action);

            m_pActions.Add(action);

            return action;
        }