resolveAll method
Resolves all connection parameters by their key.
- correlationId (optional) transaction id to trace execution through call chain.
- key a key to uniquely identify the connections. Return Future that receives found connections or error.
Implementation
@override
Future<List<ConnectionParams>> resolveAll(
String? correlationId, String key) async {
var connections = <ConnectionParams>[];
for (var index = 0; index < _items.length; index++) {
var item = _items[index];
if (item.key == key && item.connection != null) {
connections.add(item.connection!);
}
}
return connections;
}