I'm creating a web service by using WCF (Windows Communication Foundation) and Visual Studio 2019.
I'm reusing the Business Logic Layer, the Data Access Layer and the Data Model of an old solution.
I already created a new WCF service application on my solution and implemented the interface (with all the methods of the Business Logic Layer class) and the service which implements such interfaces, instantiates the class variable for the business logic class and uses it to call the methods from the business logic class.
NOW I want to create the proxy inside the same solution, I have some doubts on how to do this.
First of all, which type of project should I create inside the solution for this proxy? (is it a new project of type library or what else?)
Secondly, as the proxy is an intermediate layer between client and server, how should I connect it to the server? And how should I connect it to the WCF Service?
What I have tried:
I created a WCF service application.
Inside this WCF project, its IService interface declares the Business Logic methods. The Service implements IService, instantiates the Business Logic class variable and uses it to call the business logic methods.
I created a new project of type library (is it correct?) for the proxy.
I created an interface where I declare the BLL methods.
Now I'm gonna create the WCFUserProxy class which implements such interface and calls those methods.