How to set a dto session key when calling WCF proxy
The power of the following method is avoid implementing the WCF contract client in the client side and duplicate the code for each call.
Using Reflections and Expression Lambda to handle each message before send it.
The follwing code has 3 steps specified by regions :
Update the DTO.
Initilialize the proxy if the channel is in status Faulted.
Invoke the contract operation
Call the method from another class code:
The postings on this site are my own and don't necessarily represent my
employer’s positions, strategies or opinions.