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