Category and Type of event aren't available to subscribers


It might be useful for an Action to have access to the Category and Type of the event that triggered it.

This is something I'd like for my Audit module - so if the AuditCode is left blank I'd create an automatic audit code based on the event like: {Category}_{Type}

This would mean I could set up a single auditing rule with many events and generate a unique audit code for each type of event.

Perhaps the event category and type could be surfaced in Tokens. Or they could simply be properties of the EventContext. For this I'd suggest changing line #75 of RulesManager.cs to the following:

var context = new EventContext { Tokens = tokens, Properties = properties, EventCategory = eventCategory, EventType = eventType };

And of course add the corresponding properties on EventContext.