First, I run the Windows service, which should contain a lot of functionality. There will be a business layer, and the results coming from this business layer will be sent through WCF to the presentation layer.
I do not know how to structure all this functionality.
So my questions are:
1. Should I create somekind of the class of the class Facade, which will cover all classes of service and put this one class Facade on one ServiceHost. Or just create an instance of ServiceHost for each class of service? Like this
host1 = new ServiceHost(typeof(MyService1));
host2 = new ServiceHost(typeof(MyService2));
2. How should my service classes be granulated? By design or for the aggregate root or for some block of functionality?
This post will work through net.pipe.
source
share