Пример #1
0
        public static RuleDescription GetRuleDescription(AmqpRuleDescription amqpDescription)
        {
            Filter     filter     = MessageConverter.GetFilter(amqpDescription.Filter);
            RuleAction ruleAction = MessageConverter.GetRuleAction(amqpDescription.Action);

            return(new RuleDescription(filter)
            {
                Action = ruleAction
            });
        }
Пример #2
0
        public static AmqpRuleDescription GetRuleDescription(RuleDescription description)
        {
            AmqpFilter     filter     = MessageConverter.GetFilter(description.Filter);
            AmqpRuleAction ruleAction = MessageConverter.GetRuleAction(description.Action);

            return(new AmqpRuleDescription()
            {
                Filter = filter,
                Action = ruleAction
            });
        }