Exemplo n.º 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
            });
        }
            protected override Performative CreateCommand()
            {
                AmqpRuleDescription ruleDescription = MessageConverter.GetRuleDescription(this.description);
                AmqpAddRule         amqpAddRule     = new AmqpAddRule()
                {
                    RuleName        = this.description.Name,
                    RuleDescription = ruleDescription
                };

                return(amqpAddRule);
            }