Comments (1)
Initial design points:
- Add an
IFunctionExecutionContextFactory
with one method:FunctionExecutionContext Create(InvocationRequest request)
- Create a
DefaultFunctionExecutionFactory
... as a constructor it should take anIServiceScopeFactory
. This is used to create the scoped services. - On
FunctionExecutionContext
, add a propertyIServiceProvider InvocationServices {get;}
. This will hold the scoped services for that function invocation. - In order to create the scoped services, we'll need to pass an
IServiceScopeFactory
into theDefaultFunctionExecutionFactory
via DI -- and then pass that into theFunctionExecutionContext
when it gets created.IServiceScopeFactory
is the thing that lets us callCreateScope()
-- which gives us theIServiceProvider
we want to use withInvocationServices
- So when we create a new context, you can create the scope and then assign that to
InvocationServices
.
Then we'll iterate from there :-)
from azure-functions-dotnet-worker.
Related Issues (20)
- Converting functions from .net6.0 inprocess to .net*8.0 inprocess linux HOT 1
- Duplicate Logs in Application Insights HOT 5
- Update Microsoft.Azure.Functions.Worker.Sdk so the auto-generated WorkerExtensions.csproj file contains an up-to-date Azure.Core HOT 3
- Prejit support on FunctionsNetHost
- Azure pubsub event called with Exception of InvalidOperation after upgrading to .NET 8
- Ensure content root path is correct when running via Native host HOT 1
- dotnet publish /t:PublishContainer on linux platform does not publish some dlls to a docker image HOT 2
- Activity.Current.AddTag is not added to CustomProperties of request telemetry in app insights HOT 3
- Worker Extensions Internal Project Build Failure With Dependency Downgrade issue NU1605, while building Azure Functions DotNet 8 Isolated Model HOT 3
- Update Microsoft.Azure.Functions.Worker.Sdk to latest version of Microsoft.Azure.Functions.Worker.Extensions.Storage.Queues to address CVE-2024-35255 HOT 1
- Behavioural changes when using request body as the request content for a chained http request HOT 1
- Updated behavior for `dotnet run`
- [Throughput Testing] .NET 8 in-proc Linux apps HOT 3
- KafkaEventData support for isolated extension
- NU1102: Unable to find package Microsoft.Azure.Functions.Worker.Core with version (>= 1.19.0) HOT 5
- Bug: Null Result Issue with SignalRTrigger Functions in .NET8 Upgrade HOT 5
- No job functions found when deployed to app service plan function app HOT 3
- Internal Microsoft Component Governance scanning is identifying a vulnerability in Azure.Core which is a transitive referenced package by Microsoft.Azure.Functions.Worker.Extensions.EventGrid 3.4.2
- .Net 8 isolated function app with Eventhub trigger - Serialization issue when message is published via nodejs with extra properties.
- DefaultMethodInfoLocator doesn't cater for overloaded methods
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-worker.