♯ C# EVOCATION DIFFICULTY: Apprentice Structural

The Facade Illusion

Providing a unified interface to a complex system of subsystems.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Facade
ARCANUM SCHOOL: Illusion // Grand Misdirection
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CSHARP PATTERN //
using System;

namespace EnterpriseEvocation
{
    internal class ManaPool { public void Draw() => Console.WriteLine("Drawing from Mana Pool."); }
    internal class LeylineRouter { public void Align() => Console.WriteLine("Aligning Leylines."); }
    internal class AstralProjector { public void Project() => Console.WriteLine("Projecting Astral Form."); }

    public class SummoningFacade
    {
        private readonly ManaPool _mana = new();
        private readonly LeylineRouter _router = new();
        private readonly AstralProjector _projector = new();

        public void PerformGrandSummoning()
        {
            Console.WriteLine("Starting Grand Summoning sequence...");
            _router.Align();
            _mana.Draw();
            _projector.Project();
            Console.WriteLine("Summoning complete.");
        }
    }
}

A facade masks the brutal complexity of the underlying enterprise subsystems. By invoking a single PerformGrandSummoning method, the acolyte is spared from manually routing leylines, drawing mana, and aligning projections.

Runic Tags: #structural #facade #simplification #csharp