So what I'm struggling with is the following scenario.
I'm trying to integrate DI (Autofac) in a xamlx workflow service.
Since such a service is merely a WCF hosted service, I thought I could just look at Autofac's WCF integration implementation and adapt that so it can be used with a WorkflowServiceHost(Factory).
And while I managed to do this (adding an InstanceContextInitializer which puts an IExtension on the current OperationContext to start a new LifetimeScope for the WCF request) and successfully tested it with a simple Sequential Workflow, this doesn't work with a State Machine Workflow!
Well, it does work in the first state of that workflow, but after transitioning to the following state, the OperationContext is gone.
So my questing is, is anybody out there doing something similar? To have a lifetime scope per WCF request to a xamlx state machine workflow service?
For now I guess I'm going to have to go with a lifetime scope per Activity to have some kind of control over my resovled objects from the container..
OperationContext in State Machine Workflows (WF 4.5)
191 views Asked by schepersk At
0
There are 0 answers
Related Questions in WCF
- Migrate ASMX web method to WCF which accepts string array
- Handling WCF enums when client and server have different versions of enum
- Objective tools for monitoring WCF APIs for latency, failures, and breakdowns?
- ASP.NET Core Web api + WCF
- WCF Authentification Android App - Maui WCF Webservice Basic
- WCF to WCFCore - Help Menu
- Problem with hashtag (#) character in httpclient and WCF
- How to add REST API to a .NET Framework Solution with existing WCF Services?
- How to run WCF service in VSCODE
- Adding HTTP Headers using MessageInspector in WCF (VB.NET) Not Working
- The data returned by the WCF service contains special characters, causing an error when the client attempts to receive it!"
- How to configure rest api’s in WCF project , making it hybrid solution
- WCF + PostgresQL. Npqsql connection is not open
- CORS Error that is not fixed with usual solution
- .NET project hosted on IIS is timing out in 5 minutes but works fine on localhost
Related Questions in DEPENDENCY-INJECTION
- How to add logging to an abstract class in php
- Nest.js can't resolve dependencies of the external library's Reflector dependency
- Do we need IoC containers in typescript if ts-mock-imports exists
- Blazor/Razor resolve components using dependency injection
- Access Registed Scoped Services and Transient Services using GetService()
- using state data class alongside ComposeDestinations
- Messing up with conflict between spring jcl and commons-logging.jar
- How to write pytest tests for a FastAPI route involving dependency injection with Pydantic models using Annotated and Depends?
- .NET Core Include Method in Dependency Injection
- Injecting IHubContext into my background service for SignalR in .NET 5
- Issue with service method call in .NET Background Service , Issue with Scope
- How can I inject the prisma io module using inversify in my node.js project?
- Angular service injection hierarchy
- Trouble with "dotnet run seeddata" when trying to seed a database with EntityFrameworkCore. Specifically with ASP.NET Core 6 Web API
- NX Angular unit tests fail because of NullInjectorError
Related Questions in AUTOFAC
- AutoFac Lifetime scopes for Isolated Azure Functions
- Using Autofac with HostApplicationBuilder
- Autofac: Registering a Singleton and InstancePerDependency Dependency Relationship
- Scoped services via delegate factories in singleton services with autofac
- How to implement Chain of Responsibility design pattern using Autofac
- How to go about catching controller activator exceptions in order to log them?
- ASP.NET Core 6+, Autofac, TreeRouteBuilder costructor not found
- Get a collection of all IOptions objects with autofac
- autofac - Not able to use EnableClassInterceptors with expression registration or lambda registration techniuqe
- How to mock IProcess to in a c# Unit test
- Hangfire & Autofac.Core.Registration.ComponentNotRegisteredException: The requested service has not been registered
- Register assembly types as self and as specific interface
- Autofac Dependency Injection for Azure Table and EntityFrameworkCore InMemoryDb
- webforms IEnumerable property set to empty and reset its value
- Autofac time driven [tagged] scope
Related Questions in WORKFLOW-FOUNDATION
- Workflow foundation and sdk-style project
- How to access CodeActivity In Argument Value in Code Behind
- How to reference an audio resource from C# in Windows Forms?
- How to set value of Variable<int> which is used in UiPath, using C#
- Why my aplication doesn't LoadAndCompleteInstance after some execution using BackgroundWorker?
- C# How to duplicate line in text file (.txt) when button is clicked?
- How can we enable window workflow foundation inside Dockerfile for window base images for building Dot Net Framework application?
- How to add arguments to a workflow properly?
- Config files for
- Custom Activites in Workflow Foundation dynamic Argument Validation
- Detecting the language (C# or VB) of a host Workflow
- How to store the values of the size of window, margin and textbox C# WF
- Windows Workflow Foundation - The deserializer cannot load the type to deserialize because type
- Windows Workflow Foundation for .net Core
- How to debug Workflow Foundation with MEF using Visual Studio 2019
Related Questions in STATE-MACHINE-WORKFLOW
- AWS StepFunction: Adding new column to the summary
- How to give values with array of objects as input to a step function input?
- RedisStateMachinePersister is not persisting StateMachine with Redis
- step-functions-local: Can't start state machine within state machine
- How do I determine, at the earliest, if an AWS step function state has failed?
- Is there a function for getting the parent state value when in a compounded state (hierarchical state) in xState?
- Get all the failed executions of a state machine in AWS Step function and execute dynamically. (In java)
- AWS Step Functions: How to access the input of the state that generated an exception in a catch block?
- I am trying to implement spring state machine and in each state transition wanted to reply to user before moving from state A to State B
- Spring state machine configuration for rest service requests
- Spring webflow, spring state machine and HTML5
- State Machine Workflow Approve/Reject Buttons on Edit page
- Independent subtates in a state machine
- Error handling when using a state machine
- Can we have more than one trigger between two states in a State Machine?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)