protected Task On(AppLanguageAdded @event, EnvelopeHeaders headers) { return(UpdateAppAsync(@event, headers, a => { a.LanguagesConfig.Apply(@event); })); }
protected Task On(AppLanguageAdded @event, EnvelopeHeaders headers) { return(Collection.UpdateAsync(@event, headers, a => { a.UpdateLanguages(c => c.Add(@event.Language)); })); }
public void On(AppLanguageAdded @event, EnvelopeHeaders headers) { UpdateApp(@event, headers, a => { a.LanguagesConfig = a.LanguagesConfig.Apply(@event); }); }
protected Task <HistoryEvent> On(AppLanguageAdded @event) { const string channel = "settings.languages"; return(Task.FromResult( ForEvent(@event, channel) .AddParameter("Language", @event.Language))); }
protected void On(AppLanguageAdded @event) { languages.Add(@event.Language); }
protected void On(AppLanguageAdded @event) { languagesConfig.Apply(@event); }
public static LanguagesConfig Apply(this LanguagesConfig languagesConfig, AppLanguageAdded @event) { return(languagesConfig.Set(new LanguageConfig(@event.Language))); }
protected void On(AppLanguageAdded @event) { LanguagesConfig = LanguagesConfig.Set(@event.Language); }
public static void Apply(this LanguagesConfig languagesConfig, AppLanguageAdded @event) { languagesConfig.Set(new LanguageConfig(@event.Language)); }