Beispiel #1
0
        public async Task Refresh()
        {
            System.Collections.Generic.ICollection <ChoiceGetData> data = await this.client.ChoiceGetAsync();

            System.Collections.Generic.List <ChoiceEntryViewModel> list = data.Select(o => this.container.Resolve <ChoiceEntryViewModel>().GetWithDataModel(o)).Reverse().ToList();
            this.Entries = new BindingList <ChoiceEntryViewModel>(list);
        }
Beispiel #2
0
 public Task TriggerAsync(object sender, TEventModel args)
 {
     System.Collections.Generic.ICollection <AsyncEventHandler <TEventModel> > keys = _subscribers.Keys;
     return(Task.WhenAll(keys.Select(k => k?.Invoke(sender, args))));
 }