Hi, I’d need to resolve the connection string to be used by outbox feature. We need to provide support for multi-tenant system that provides the client tokens in every incoming message. All the logic to retrieve a client’s connection string is in a service called IClientConnectionService. Is it possible to inject this service in the buildConnectionFromTenantData callback?
var persistence = endpointConfiguration.UsePersistence();
buildConnectionFromTenantData: tenantId =>
resolve IClientConnectionService service;
var connection = service.Get(tenantId);
return new SqlConnection(connection);