/// <summary> /// Illustrates caching for single-argument methods. /// </summary> /// <param name="service"></param> private static void SingleArgumentTest(IMyService service) { var aDepts = service.GetDepartments("a"); Console.WriteLine(); aDepts = service.GetDepartments("a"); Console.WriteLine(); var bDepts = service.GetDepartments("b"); Console.WriteLine(); bDepts = service.GetDepartments("b"); Console.WriteLine(); }