Comments (5)
the specification of IServiceProvider defines it as follow:
Returns
Object
A service object of type serviceType.-or-
null if there is no service object of type serviceType.
https://docs.microsoft.com/en-us/dotnet/api/system.iserviceprovider.getservice?view=netcore-3.1
from azure-functions-dotnet-extensions.
another strange thing is the dependency on Microsoft.Extensions.DependencyInjection
here:
this is actually not used at all. the DI is based on a custom DI implementation in the azure functions host.
from azure-functions-dotnet-extensions.
I completely agree this is totally wrong. If you inject the IServiceProvider
and call GetService()
it return null:
With that in mind, I believe it is the host that is throwing and not the actual service provider...
from azure-functions-dotnet-extensions.
@fabiocav do you this issue should be opened on the Host repo or here?
from azure-functions-dotnet-extensions.
Apologies for the late response here.
This is indeed a host behavior and we just closed a similar issue with information about the plans here.
Closing this as "won't fix", as we won't be changing the behavior of the in-proc experience, but the comment linked above provides more details about the plans moving forward.
from azure-functions-dotnet-extensions.
Related Issues (20)
- Azure function v3 fails to start up in Visual Studio 2019 for Mac when using Microsoft.Azure.Functions.Extensions.DependencyInjection HOT 8
- Could not load type 'Microsoft.Azure.WebJobs.Hosting.IWebJobsStartup2' HOT 16
- Registering implementation type X is not assignable to service type IX when using Generics HOT 6
- [FEATURE REQ] Fluent Strongly Typed Context
- [Feature] Remove local.settings.json and be consistent with how AspNet Core work HOT 1
- [Question] How to use appsetting.json values in a trigger? HOT 2
- DependencyInjection stops working when we add User Secrets (Error: "Microsoft.Extensions.DependencyInjection.Abstractions: Unable to resolve [injected service] while attempting to activate [function])
- Upgrading Microsoft.Extensions.DependencyInjection.Abstractions to latest version (5.0.0) breaks DI HOT 1
- [Feature Request] Specify Startup per function HOT 2
- Dependency Injection not instantiating instances when using function.json rather than attributes
- Url is missing from appinsights logs for requests if use FunctionStartup HOT 9
- Error during startup when using SignalR.Client HOT 1
- The Functions scale controller may not scale the following functions correctly because some configuration values were modified in an external startup class HOT 16
- [Pls Help] Why DI doesn't work as expected when using Azure Function HOT 2
- Dotnet 6 and Azure Functions V4 HOT 5
- Why is the context not available on IFunctionsHostBuilder, but on internal interface IFunctionsHostBuilderExt HOT 7
- This repo is missing important files HOT 1
- Incompatiblity with EF Core 7 HOT 11
- Is there any documentation available for migrating from IWebJobsStartup to FunctionsStartup in Azure Function? HOT 3
- Update Microsoft.Azure.WebJobs to latest, Newtonsoft.Json 11.0.2 dependency HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-dotnet-extensions.