Open AssCasc opened 8 months ago
Please merge the pull request. Singletons are not a good solution in multithreaded applications, especially when they offer direct write access to a list.
Sorry i forgot to write in this thread but after doing all the conversion work i realized that it is possible to use:
Dim brevoConfig As New Configuration()
brevoConfig.ApiKey.Add("api-key", your-api-key)
Dim apiInstance As New AccountApi(brevoConfig)
to set the api key specifically for this invocation
Thanks for the information. Didn't notice that :) The examples should also use this instead of the singleton.
According to the getting started, api-key and pertner-key must be stored in "Configuration.Default.ApiKey" dictionary; in this way the kays are shared to all library. In my case i need use the library in large shared service with hundreds of Brevo connections. You will understand that I cannot use shared keys throughout the library but each connection requires its own keys. I need something like that:
Is this possible? Or if i fork the project you will accept the update?