protected Task <HistoryEvent> On(AppRoleUpdated @event) { const string channel = "settings.roles"; return(Task.FromResult( ForEvent(@event, channel) .AddParameter("Name", @event.Name))); }
protected void On(AppRoleUpdated @event) { Roles = Roles.Update(@event.Name, @event.Permissions.Prefix(Name)); }