resolve method

Future<ConfigParams?> resolve(
  1. String? correlationId
)

Resolves a single component connection. If connections are configured to be retrieved from Discovery service it finds a IDiscovery and resolves the connection there.

  • correlationId (optional) transaction id to trace execution through call chain. Return Future that receives resolved connection Throws error.

Implementation

Future<ConfigParams?> resolve(String? correlationId) async {
  var connection = await connectionResolver.resolve(correlationId);
  var credential = await credentialResolver.lookup(correlationId);
  _validateConnection(correlationId, connection, credential);

  connection = connection ?? ConnectionParams();
  return _composeConnection([connection], credential);
}