noah
noah
CC#
Created by noah on 3/29/2024 in #help
Need help with integration of a ZendeskApiClient for all my tenants.
In my set of .NET microservices (for a multi-tenant platform) I have a common NuGet package which sets up all the necessary dependency injection at startup. However, I want to make it possible to let each tenant use Zendesk. The code for adding a Zendesk client typically looks like so:
services.AddZendeskClient($"https://{appName}.zendesk.com", username, token);

return services;
services.AddZendeskClient($"https://{appName}.zendesk.com", username, token);

return services;

However, each tenant has their own appName, username and token. How can I make it so that this is dynamic, I can't just call the above snippet once, because I have quite a few tenants. Appreciate all help! Thanks!
1 replies