protected Task On(AppLanguageAdded @event, EnvelopeHeaders headers)
 {
     return(UpdateAppAsync(@event, headers, a =>
     {
         a.LanguagesConfig.Apply(@event);
     }));
 }
Beispiel #2
0
 protected Task On(AppLanguageAdded @event, EnvelopeHeaders headers)
 {
     return(Collection.UpdateAsync(@event, headers, a =>
     {
         a.UpdateLanguages(c => c.Add(@event.Language));
     }));
 }
Beispiel #3
0
 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)));
        }
Beispiel #5
0
 protected void On(AppLanguageAdded @event)
 {
     languages.Add(@event.Language);
 }
Beispiel #6
0
 protected void On(AppLanguageAdded @event)
 {
     languagesConfig.Apply(@event);
 }
Beispiel #7
0
 public static LanguagesConfig Apply(this LanguagesConfig languagesConfig, AppLanguageAdded @event)
 {
     return(languagesConfig.Set(new LanguageConfig(@event.Language)));
 }
Beispiel #8
0
 protected void On(AppLanguageAdded @event)
 {
     LanguagesConfig = LanguagesConfig.Set(@event.Language);
 }
Beispiel #9
0
 public static void Apply(this LanguagesConfig languagesConfig, AppLanguageAdded @event)
 {
     languagesConfig.Set(new LanguageConfig(@event.Language));
 }