public void Start() { //TODO: Link this to the provider instead!! Dispatcher.Init(_frontier.GetAll()); Fetcher.Output.Completion.Wait(); Storer.Input.Completion.Wait(); }
public async Task LoadFriends() { var friendsFromStore = await _keyValueStore.GetAll <Friend>() ?? new List <Friend>(); foreach (var friend in friendsFromStore) { Friends.Add(friend); } }
/// <summary> /// Will fetch and send all data in the repository for each topic sent in with the connection. /// </summary> public override void OnOpened() { //Send back the data in the repo for the type TV this.Invoke(_store.GetAll(), string.Format("{0}:{1}", DataSyncCommand.Init, _topic)); }