private static void FacadeExample() { // Use a number of objects to complete a single operation // containing different stages through a single method call. var workerA = new WorkerTypeA(); var workerB = new WorkerTypeB(); var facade = new FacadeType(workerA, workerB); facade.ComplicatedOperation(); }
public FacadeType(WorkerTypeA workerA, WorkerTypeB workerB) { this.workerA = workerA; this.workerB = workerB; }