-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it meant to be used in dependency injection or not? #26
Comments
Hello, |
Thank you very much for your response! I will add it to my Service collection! |
@daniel-jones-deepl, @JanEbbing, would you evaluate the possibility to add some service collection extensions? I wrote a small POC in this PR #28. |
Is this what you had in mind? https://github.com/DeepLcom/deepl-dotnet/blob/issue-26%2B29/src/DeepL.Service/DeepLService.cs How to use it: deepl-dotnet/samples/ASP.NET/Program.cs Line 19 in 75fd2c6
|
Yea, i alread had it sitting here unfinished. Your PR reminded me to get it done! 😇 |
Hello there, I was just wondering if it makes sense to create one Translator and use dependency injection to get it to the classes it's needed in or if there should be a new Translator each time it is needed?
Best regards,
tasutafat
The text was updated successfully, but these errors were encountered: