Example #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 void OnEvent(ExampleRuleDomainEvent evt)
 {
     evt.Attributes.Values.IsHighImportance = "Event is of high importance.";
 }