public FilterList(string ownerAndslug) { var splited = ownerAndslug.Split('/'); if (splited.Length < 2 || splited.Length > 3) { throw new ArgumentException("owner and slug must be separated as slash, once."); } if (splited.Length == 2) { _listInfo = new ListInfo(splited[0], splited[1]); this._receiverScreenName = splited[0]; } else { _listInfo = new ListInfo(splited[1], splited[2]); this._receiverScreenName = splited[0]; } _watcher = new ListWatcher(_listInfo); _watcher.OnListMemberUpdated += this.RaiseInvalidateRequired; }
public FilterList(string ownerAndslug) { var splited = ownerAndslug.Split('/'); if (splited.Length < 2 || splited.Length > 3) { throw new ArgumentException("owner and slug must be separated as slash, once."); } if (splited.Length == 2) { _listInfo = new ListInfo(splited[0], splited[1]); this._receiverScreenName = splited[0]; } else { _listInfo = new ListInfo(splited[1], splited[2]); this._receiverScreenName = splited[0]; } _watcher = new ListWatcher(_listInfo); _watcher.OnListMemberUpdated += this.RaiseInvalidateRequired; }
public FilterList(string ownerAndslug) { var splited = ownerAndslug.Split('/'); if (splited.Length < 2 || splited.Length > 3) { throw new ArgumentException("owner and slug must be separated as slash, once."); } if (splited.Length == 2) { _listInfo = new ListInfo(splited[0], splited[1]); _receiverScreenName = splited[0]; } else { _listInfo = new ListInfo(splited[1], splited[2]); _receiverScreenName = splited[0]; } _watcher = new ListWatcher(_listInfo); System.Diagnostics.Debug.WriteLine("#INVALIDATION: List Information Loaded"); _watcher.OnListMemberUpdated += RaiseInvalidateRequired; }
public ListMembers(string userScreenName, string listSlug) { _listInfo = new ListInfo(userScreenName, listSlug); _watcher = new ListWatcher(_listInfo); _watcher.OnListMemberUpdated += this.RaiseReapplyFilter; }
public ListMembers(string userScreenName, string listSlug) { _listInfo = new ListInfo(userScreenName, listSlug); _watcher = new ListWatcher(_listInfo); _watcher.OnListMemberUpdated += this.RaiseInvalidateFilter; }
public void Setup() { _integerEnumerable = new[] { 1, 2, 3, 4 }; _listWatcher = new ListWatcher(); _watchedEnumerable = new WatchedEnumerable <int>(_integerEnumerable, "base", _listWatcher); }
public void Setup() { _listWatcher = new ListWatcher(); _integerQueryable = (new[] { 1, 2, 3, 4, 5 }).AsQueryable(); _watchedQueryable = new WatchedQueryable <int>(_integerQueryable, "base", _listWatcher); }
public ListMembers(string userScreenName, string listSlug) { _listInfo = new ListInfo(userScreenName, listSlug); _watcher = new ListWatcher(_listInfo); _watcher.OnListMemberUpdated += RaiseInvalidateFilter; }