Put your secrets in the secrets store. Use appsettings.json to represent the schema. Please keep the appsettings.json file up to date, even with empty values where they're secret
Deepgram SDK
Changed implementations to use httpclient in their ctor, and when adding to services have the system generate the client. This allows users to manually instantiate the clients without dependency injection.
Removed timeout property from abstract client(as in all the clients). Added it to options for if the user wants to set it via DI, set it manually on passed HttpClient for manual start.
Removed all passing around of ApiKeys, now read straight from Options.
Moved a lot of util methods into extensions.
Moved other util methods to where they were being used, as they were only used in one place.
Cleaned up and renamed some methods in AbstractRestClient. Also made everything in there async and awaitable.
Cleaned up constants
Cleaned up options collections.
Cleaned up the cleanup. As in all of the things.
Deepgram Examples
Fixed the compilation of the prerecorded example project
Added keys and fixed the logic.
/Examples/Prerecorded/ now works and tested with live key.
Overall
Put your secrets in the secrets store. Use appsettings.json to represent the schema. Please keep the appsettings.json file up to date, even with empty values where they're secret
Deepgram SDK
Changed implementations to use httpclient in their ctor, and when adding to services have the system generate the client. This allows users to manually instantiate the clients without dependency injection.
Removed timeout property from abstract client(as in all the clients). Added it to options for if the user wants to set it via DI, set it manually on passed HttpClient for manual start.
Removed all passing around of ApiKeys, now read straight from Options.
Moved a lot of util methods into extensions.
Moved other util methods to where they were being used, as they were only used in one place.
Cleaned up and renamed some methods in AbstractRestClient. Also made everything in there async and awaitable.
Cleaned up constants
Cleaned up options collections.
Cleaned up the cleanup. As in all of the things.
Deepgram Examples
Fixed the compilation of the prerecorded example project
Added keys and fixed the logic.
/Examples/Prerecorded/ now works and tested with live key.
All made on Twitch. :)