Replies: 1 comment 4 replies
-
Ah, probably bc this was also done in the regular Microsoft Azure Functions project template. So, mainly streamlining with Microsoft default here, I guess. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the Isolated Function template, we pre-provision a sample Azure Function.
This function uses a logger, but instead of having that logger injected into the function, we're creating it ourselves. Why do we do that ? Why don't we use the DI container for this ?
In other words, we're currently doing this:
(source)
Why don't we just inject the ILogger via the constructor ?
Beta Was this translation helpful? Give feedback.
All reactions