Use with sessionful services

May 18, 2010 at 12:47 PM

Any suggestion on how to use with sessionful services?

Basically, I have services similar to the following

[ServiceContract]

public interface IFoo {

[OperationContract(IsInitializing=true)]

void PrepareStuff()

[OperationContract]

void ActualOp1();

[OperationContract]

void ActualOp2();

}

 

Now, if say ActualOp1 fails, PrepareStuff would have to be called again before ActualOp1 can be re-attempted.

I assume this is not supported out of the box, but it is possible to create a generic solution in this case?