views:

36

answers:

0

Below is the description of the flow:

Overall Flow: Web page(aspx Client) -> Communicator DLL(Instantiate Proxy)->WCF Service

Web Page Client Role: -> Instantiate class of Communicator DLL to pass the inputs to the operation -> Gets the output from the client and do further processing -> Does not have any clue of service operations or proxy

Communicator DLL: -> Exposes Data class(class definition similar to WCF data Contract class for that operation) to client that capture the operation inputs -> Gets the inputs from the data class that was passed by Client and instantiate the proxy(.cs file with WCF proxy class) operation and call the service operation -> Return the response to the client.

WCF Service; ->Intercepts the call, process the request and response.

Questions:

  1. What will be the best design pattern that will fit the above?
  2. Which design pattern will allow flexbility of reusing the Communication DLL for calling multiple services and return response to multiple clients.

Your help is much appreciated.

Thanks