Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public FacadeType(WorkerTypeA workerA, WorkerTypeB workerB)
 {
     this.workerA = workerA;
     this.workerB = workerB;
 }