-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Use IAsyncConfigureOptions #15125
Use IAsyncConfigureOptions #15125
Conversation
@hishamco With |
The PR is still WIP, I will react to the changes ASAP |
@MikeAlhayek I assume we should use the options itself |
no. you should not use |
I already saw the |
yes I expect it to fail because it is called after the SP is already created. |
Any idea how to fix it, because this is something we might want in the email services |
@hishamco With However, with in the example of In your Email service, why do you think you need to use it? Which service that required initialization "not configuration"? |
Seems @Piedone wants to use the async version instead of |
which code are you referring to? It is okay to use |
Wait, so I then suggest either one of the following:
|
Ya, it confused me too :) |
So, Let us do it after merging Azure Email because it will take long time :) |
Yes @Piedone it is confusing. I had the same argument with JT when he introduced it. It may not be a bad idea to rename it. It's for initializing services not configuring options using IOption pattern. |
Is this solve a real problem Mike? just kidding :) |
Refactoring sometimes makes sense. And sometimes is a must. But, it's typically risky to take on specially if there is no testing to ensure that the end result is the same. Either way, PRs should be dealt with fast. Either we request changes, close it or merge it. As previously mention a PR that takes a long time in the queue will likely mean it adds to real value |
@MikeAlhayek could you please close this and handle Zoltan's comments #15125 (comment) if you have time, while you know the differences between both APIs Meanwhile I'm trying to updating and finalizing my PRs which are a lot :) |
No description provided.