示例#1
0
        public void Start()
        {
            //TODO: Link this to the provider instead!!
            Dispatcher.Init(_frontier.GetAll());

            Fetcher.Output.Completion.Wait();
            Storer.Input.Completion.Wait();
        }
示例#2
0
        public async Task LoadFriends()
        {
            var friendsFromStore = await _keyValueStore.GetAll <Friend>() ?? new List <Friend>();

            foreach (var friend in friendsFromStore)
            {
                Friends.Add(friend);
            }
        }
示例#3
0
 /// <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));
 }