i need to pass a value from client everytime a request sent to WCF and check that value on server and decide to make the request or not, can any one write an example of that ?im not sure how is that is going be implemented
case:
im generating a key based on the hardware of the client and i want to send that key to the server with every request to check if the key is accepted in the server db and then decide to process the request or not.
thanks in advance.
first we need to implement Behavior and inspector in the client side to send Key to authenticate the client :
now we need to implement Behavior and inspector in the server side (WCF service) to inspect every request made and extract the header then validate it :
now lets register the behavior :
that is it thanks.