You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure when this started, but I am using v3 Azure Functions and when the below code runs, the ImplementationInstance is always null on the ServiceDescriptor. Perhaps the behavior has changed under the covers in recent versions, but it now requires calling BuildServiceProvider() and fetching the IConfguration from the IServiceProvider. The impact of this is that any modifications I make to host.json is lost when also using this package.
var descriptor = builder.Services.FirstOrDefault(d => d.ServiceType == typeof(IConfiguration));
if (descriptor?.ImplementationInstance is IConfigurationRoot configuration)
{
configurationBuilder.AddConfiguration(configuration);
}
The text was updated successfully, but these errors were encountered:
Not sure when this started, but I am using v3 Azure Functions and when the below code runs, the
ImplementationInstance
is always null on theServiceDescriptor
. Perhaps the behavior has changed under the covers in recent versions, but it now requires callingBuildServiceProvider()
and fetching theIConfguration
from theIServiceProvider
. The impact of this is that any modifications I make tohost.json
is lost when also using this package.The text was updated successfully, but these errors were encountered: