public string Operation() { var result = "First Operation: \n"; result += _subsystem1.Operation1() + " " + _subsystem2.Operation1() + "\n"; result += "Second Operation: \n"; result += _subsystem1.Operation2() + " " + _subsystem2.Operation2() + "\n"; return(result); }
// The Facade's methods are convenient shortcuts // to the sophisticated functionality. public string Operation() { string result = "Facade initializes subsystem:\n"; result += _Subsystem1.Operation1(); result += _Subsystem2.Operation1(); result += "Facade orders subsystems to perform the action:\n"; result += _Subsystem1.OperationN(); result += _Subsystem2.OperationN(); return(result); }