I have couple of questions about Program architecture / design.
1. I am refactoring one of my program completely, the purpose of the program is to transfer file from client side to server side (like drop box or cyber ark). It can create number of clients according to the configuration, its all under window service.
lets look at the start code:
public class Master
{
private List<Box> _boxes = new List<Box>();
public Master()
{
Initialize(); ...
}
public void Run()
{
foreach(var box in _boxes)
{
box.Run();
}
}
}
Each Box class is "Living" by its own, but if one of them fail with unmanaged exception then the whole service is lost, or by managing the resources better. my thought was that the window service is the master class that will start number of Boxes as a different Process
, or using the appDomain
class.
- My second question is - i simply lack the knowledge of program architecture / design, do any of you guys know of a recommended book / article / link to read ? Thanks
P.S. Does any of you also cant see the arrows and the StackExchange link in Google chrome browser ?