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)
190 Views Asked by schepersk At
0
There are 0 best solutions below
Related Questions in WCF
- couldn't copy pdb file to another directory while consuming wcf web service
- Call wcf from android app
- WCF Service not accepting multiple body parameters
- Error in Calling some service in WCF Client
- WCF channel Factory caching
- How to convert a List<string> to an IEnumerable<ServiceReference.datatable> C# Silverlight WCF RIA Services LINQ to SQL
- WCF reusing types with inheritance - cannot generate client code
- System.ServiceModel.FaultException'1' Where might the error be?
- How to configure proxy address for multiple WCF-bindings at once?
- How pass XML from PHP to the Soap WCF service?
- Multiple service contract inter-commnication
- WCF Service not returning virtual property ServiceProvider
- How to get information about error from HttpContext in WCF services
- Using Service Bus to access On Premise WCF Service
- Test case for WCF REST Service
Related Questions in DEPENDENCY-INJECTION
- Resolve object using DI container with object instance
- Angularjs dependency injection parameter
- Dagger 2 - unable to inject object
- How to have SimpleInjector resolve viewmodel dependencies?
- Command Bus/Dispatcher and Handler registration without Dependency Injection
- Receiving a NoClassDefFoundError even though jar is successfully downloaded via Maven and referenced in pom.xml
- automapper error collection was modified when multiple users are creating a user
- When to use DI over abstract inheritance?
- Simple Injector Dependency Resolution Error - Could not load file or assembly System.Web.Http
- How can I use Dependency Injection to either Override a method or to set a default method when no dependency is explicitly injected?
- Injecting login session using Dagger
- What's wrong with this factory dependencies issue?
- JAVA CDI: sometimes injection stays null when injected into EJB and interceptor in request scope
- Why a service of main module available in other modules?
- Can I specify multiple parameters using WhenInjectedInto for ninject?
Related Questions in AUTOFAC
- Get Mock with AutoMock.Create<>()
- How to resolve component based on user context using Autofac
- Autofac cannot resolve class
- System.Web.HttpcontextBase problems in Orchard 1.8 (possibly due to Visual studio 2015)
- Autofac registering all subtypes keyed according to a property
- Autofac not working after update
- Cannot pass parameters to controller constructor - Autofac MVC 5
- AutoFac does not register api controller
- Autofac constructor chaining
- How to use Autofac to inject specific implementation in constructor
- Autofac - DelegatingHandler (HttpMessageHandler) Registration
- cannot load SignalR hub script in Autofac
- HttpAuthenticationContext.Request must not be null
- Passing connection string to Entity framework at runt time for each call
- DependencyResolutionException Circular component dependency detected: How to use Autofac to inject decorator?
Related Questions in WORKFLOW-FOUNDATION
- Workflow persistence and bookmarks as a workflow failover
- AppFabric "WF Instance History" empty for a workflow hosted in IIS
- Include branch name in post build event on Team Build
- Custom Instance Store with WorkflowService hosted in IIS
- windows workflow 4.5: Get all idle workflows
- Setting the argument's value in workflow c#
- What does WorkflowApplicationInstance.Abandon() do?
- Tray application allow system to kill my program when logouting or exiting
- Visual Studio 2013 and Workflow Xaml files
- WF 4.5.1 Expression Activity type 'CSharpValue`1' requires compilation in order to run
- OperationContext in State Machine Workflows (WF 4.5)
- resource identifier xxxxxxxx has already been used in this assembly
- HTTP 500 exception when configuring workflow manager, during Add-WFHost
- Invoke method in C# WWF
- Windows Workflow Foundation usefull in my example?
Related Questions in STATE-MACHINE-WORKFLOW
- Error handling when using a state machine
- OperationContext in State Machine Workflows (WF 4.5)
- How to implement state transition involving multiple states
- How to send events to Windows Workflow 4 state machine to advance state?
- Is it possible to modify the definition of a state machine windows workflow programmatically?
- Is there a function for getting the parent state value when in a compounded state (hierarchical state) in xState?
- state_machine gem integration with rails 4
- Is it a good idea to run workflows created using windows workflow foundation in asp.net mvc environment?
- Persistent Sessions in Meteor
- Get all the failed executions of a state machine in AWS Step function and execute dynamically. (In java)
- Independent subtates in a state machine
- Testing Receive Activities in WF4 State Machine
- Show the history of a State Machine/Workflow
- State Machine WF: Issues with workflow termination
- How do I create dynamic definitions for state machine based on user defined data in DB
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)
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?