locked
How add Operation Behavior on a Receive Activity? RRS feed

  • Question

  • Hi,

     how i can do this [adding an operation behavior]:

    [BaseValidatorServiceBehaviorAttribute]

    public class BetLimits : IBetLimits

    {.....}

     

    on a Receive Activity

     

    Thanks, Felix

    Monday, September 20, 2010 11:24 AM

All replies

  • The operation behavior can be added to the Behaviors collection of the OperationDescription object specified in the OperationName property of the Receive activity.
    Monday, September 20, 2010 5:55 PM
  • HI Patrick,

    where i can set OperationDescription? Programmatically? By Property?

    Wednesday, September 22, 2010 10:09 AM
  • You can set it programmatically by:

    --Create an OperationDescription object

    --Assign your behavior to the Behaviors collection of the OperationDescription object

    --Specify the name of the OperationDescription object in the OperationName property of the Receive activity.

    Wednesday, September 22, 2010 8:13 PM
  • OK, but i host my WF in AppFabric not in a custom service.

    So, how and where i create OperationDescritpion object?

    Thursday, September 23, 2010 2:28 PM