resolve method
Resolves MQTT connection options from connection and credential parameters.
correlationId
(optional) transaction id to trace execution through call chain. Return Future that receives resolved options Throws error.
Implementation
Future<ConfigParams> resolve(String? correlationId) async {
var connection = await connectionResolver.resolve(correlationId);
// Validate connections
_validateConnection(correlationId, connection);
var credential = await credentialResolver.lookup(correlationId);
// Credentials are not validated right now
var options = _composeOptions(connection!, credential ?? ConfigParams());
return options;
}