예제 #1
0
        public async Task <IDictionary <string, object> > PostEventWithRule([FromBody] MessageRuleInfo info)
        {
            var evt = new ExampleRuleDomainEvent(info);
            await _messagingSrv.PublishAsync(evt);

            return(evt.AttributeValues);
        }
        public ExampleRuleDomainEvent(MessageRuleInfo info)
        {
            this.Value = info.Value;

            if (this.Value == 50)
            {
                this.Attributes.SetValue("__low__", "");
            }
        }