refactor: move routing interfaces into their own files

This commit is contained in:
Andrew Welker
2024-05-08 08:37:24 -05:00
parent a95d44e405
commit 06a6b1caa2
35 changed files with 1442 additions and 811 deletions

View File

@@ -23,4 +23,21 @@ namespace PepperDash.Essentials.Core
}
}
}
/* /// <summary>
/// Basically a List , with an indexer to find ports by key name
/// </summary>
public class RoutingPortCollection<T, TSelector> : List<T> where T : RoutingPort<TSelector>
{
/// <summary>
/// Case-insensitive port lookup linked to ports' keys
/// </summary>
public T this[string key]
{
get
{
return this.FirstOrDefault(i => i.Key.Equals(key, StringComparison.OrdinalIgnoreCase));
}
}
}*/
}