Comments (8)
I think I have an idea of why this doesn't work and I am following up on that. Unfortunately to get it to work I have to add some code that is unsupported by the .NET Framework webjobs package. My dilemma now is do I drop support for .NET Framework and call this v 4.0.0 of AzureFunctions.Autofac or is there a way to split the code so there are two different versions without having two seperate nuget packages. I don't know the answer to that yet.
from azure-function-autofac-dependency-injection.
@vandersmissenc It's working! Woo hoo!
I updated my project to Microsoft.NET.Sdk.Functions to v1.0.19, used 3.0.4-beta1 and then used the latest AF tools. It all sprung into life. No errors.
Really appreciate you jumping onto this quickly. If you were nearby I'd buy you a beer.
from azure-function-autofac-dependency-injection.
Thanks for reporting it. Closing this out. Full release 3.0.4 is publishing on NuGet now.
from azure-function-autofac-dependency-injection.
I've got the same issue
from azure-function-autofac-dependency-injection.
Thanks for reporting. I saw their tweet yesterday about the new version. I'll try to have a look ASAP.
from azure-function-autofac-dependency-injection.
This is the post with the breaking change information: Azure/app-service-announcements#129
Let me know if I can give you a hand. I forked the code but couldn't immediately see what was is wrong and it's late here.
FWIW, I tried another DI NuGet library (similar to this one) and it too is broken. Wonder if they changed something with Autofac?
Thank you for looking into it
EDIT: When I pinned my AF tools to the previous version everything works again.
from azure-function-autofac-dependency-injection.
@bcnzer If you would be so kind as to test Version 3.0.4-beta1 and let me know if the issue is resolved for you that would be great. It resolved it for me but I would like a second opinion.
from azure-function-autofac-dependency-injection.
Reopened to get the feedback before I remove it from beta.
from azure-function-autofac-dependency-injection.
Related Issues (20)
- Configuration Settings not picked up from appsettings.json file HOT 3
- Configuration Dependency Injection HOT 4
- IOptions DI in Azure Function HOT 3
- "A second operation started on this context before a previous asynchronous operation completed" HOT 20
- Autofac with Azure Functions with IWebJobsBuilder for constructor DI HOT 3
- IHttpClientFactory injection problem HOT 6
- Allow newer versions of Autofac to be used HOT 3
- Inject function parameters HOT 7
- Upgrade to Core 3.1 HOT 2
- RegisterAssemlyTypes now working for ClosedTypes HOT 3
- RegisterLoggerFactory doesnt work HOT 1
- Constructor Injection HOT 3
- Dependency resolution graph for injected services HOT 2
- Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.xxxx'. mscorlib: Constructor on type 'xxx.xxx.Startup.AutofacConfig' not found HOT 13
- Container instances do not cache HOT 20
- ILifetimeScope not disposed on V1 functions HOT 5
- Pass a ContainerBuilder in HOT 9
- Registering PerFunctionScope
- Constructor not found for DI class with ctor signature DIConfig(string functionName, string baseDirectory, ILoggerFactory factory) HOT 3
- Support for HttpRequestMessage parameter in DI class 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-function-autofac-dependency-injection.