/// <summary>
 /// Will fetch and send all data in the repository for each topic sent in with the connection.
 /// </summary>
 public override void OnOpened()
 {
     //Get all data for each topic passed in
     if (this.HasParameterKey("topics"))
     {
         foreach (var topic in this.GetParameter("topics").Split(','))
         {
             var persistentData = _store.Find(p => p.Topic == topic);
             InitalData(persistentData, topic);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Search the repository, not exposed to clients since accessor is protected
 /// </summary>
 /// <param name="expression"></param>
 /// <returns></returns>
 protected virtual IEnumerable <TV> Find(Func <TV, bool> expression)
 {
     return(_store.Find(expression));
 }