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