Results 1 to 4 of 4

Thread: Duplex Contracts in Workflow Services (WF + WCF)

  1. #1

    Thread Starter
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Duplex Contracts in Workflow Services (WF + WCF)

    I was just flicking through the pages towards the end of my Workflow Foundation book which I have barely read (I figured maybe they hide all the juicy stuff at the back ) and noticed something that caught my eye - it said that workflow services, ie workflows hosted in WCF services, cannot use WCF duplex contracts.
    This sounds pretty strange to me as I cant understand why that would be the case but can anyone confirm if this is true or if there is any way around it etc as I would like to use both workflow and duplex contracts (they are one of the best parts of WCF!) ?

    Cheers
    Chris
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Duplex Contracts in Workflow Services (WF + WCF)

    I think it's possible but it's not usually done because of the way WF works. The reasoning probably went like this: Let's say you have a WF state machine and a duplex method exposing it. Now, how long do you keep the connection between client-service open? The Workflow could take days, months, hours, seconds. You don't know and neither do they, so it's probably not supported, though it must be possible - it is just a method call... I haven't tried this out of course, but give it a shot.

  3. #3
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: Duplex Contracts in Workflow Services (WF + WCF)

    What also might give problems is that a WF that is stopped, could be continued on another machine, so that would make it impossible for the connection
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  4. #4

    Thread Starter
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Duplex Contracts in Workflow Services (WF + WCF)

    Quote Originally Posted by mendhak View Post
    Let's say you have a WF state machine and a duplex method exposing it.
    Oh I didnt mean a duplex method exposing the main WF workflow, I just meant is it not possible to use duplex contracts anywhere within a workflow service. Maybe its just because I have not really familiar with WF yet so I dont understand how it would integrate with WCF so well...

    I thought Workflow was basically just a differnt way of designing and viewing your code, rather than it actually affecting what your code can and cant do directly.
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width