public void On(AppContributorRemoved @event, EnvelopeHeaders headers) { UpdateApp(@event, headers, a => { a.Contributors = a.Contributors.Apply(@event); }); }
protected Task On(AppContributorRemoved @event, EnvelopeHeaders headers) { return(UpdateAppAsync(@event, headers, a => { a.Contributors.Remove(@event.ContributorId); })); }
protected Task On(AppContributorRemoved @event, EnvelopeHeaders headers) { return(Collection.UpdateAsync(@event, headers, a => { a.Contributors.Remove(@event.ContributorId); a.ContributorIds = a.Contributors.Keys.ToList(); })); }
protected Task <HistoryEvent> On(AppContributorRemoved @event) { const string channel = "settings.contributors"; return(Task.FromResult( ForEvent(@event, channel) .AddParameter("Contributor", @event.ContributorId))); }
protected void On(AppContributorRemoved @event) { contributors.Remove(@event.ContributorId); }
protected void On(AppContributorRemoved @event) { contributors.Apply(@event); }
public static AppContributors Apply(this AppContributors contributors, AppContributorRemoved @event) { return(contributors.Remove(@event.ContributorId)); }
public static void Apply(this AppContributors contributors, AppContributorRemoved @event) { contributors.Remove(@event.ContributorId); }