public SignalList <T> GetTopLevelSignals() { var toReturn = new SignalList <T>(); toReturn.AddRange(this.Where(signal => signal.SubSource == null)); return(toReturn); }
public SignalList <T> GetSignalsByCategory(string category) { var toReturn = new SignalList <T>(); toReturn.AddRange( this.Where( signal => !string.IsNullOrWhiteSpace(signal.Category) && string.Equals(category, signal.Category, StringComparison.OrdinalIgnoreCase))); return(toReturn); }
public SignalList <T> GetSignalsByCollection(string collectionName) { var toReturn = new SignalList <T>(); toReturn.AddRange( this.Where( signal => !string.IsNullOrWhiteSpace(signal.CollectionName) && string.Equals(collectionName, signal.CollectionName, StringComparison.OrdinalIgnoreCase))); return(toReturn); }
public SignalList <T> GetSignalsFromSource(object source) { var toReturn = new SignalList <T>(); toReturn.AddRange( this.Where( signal => signal.Source == source || string.Equals(signal.SourceFriendlyName, source.ToString(), StringComparison.OrdinalIgnoreCase))); return(toReturn); }
public SignalList <T> GetSignalsBySubSourceFriendlyName(string subSourceFriendlyName) { var toReturn = new SignalList <T>(); toReturn.AddRange( this.Where( signal => !string.IsNullOrWhiteSpace(signal.SubSourceFriendlyName) && string.Equals(subSourceFriendlyName, signal.SubSourceFriendlyName, StringComparison.OrdinalIgnoreCase))); return(toReturn); }