Esempio n. 1
0
 public CompositeGreetingFactory(IGreetingFactory one, IGreetingFactory two)
 {
     _one = one;
     _two = two;
 }
Esempio n. 2
0
 public static IGreetingFactory Then(this IGreetingFactory first, IGreetingFactory second) =>
 new CompositeGreetingFactory(first, second);
 public GreetingService(IGreetingFactory greetingFactory, ILanguageFactory languageFactory)
 {
     // store the factory until we need it
     this.greetingFactory = greetingFactory;
 }
Esempio n. 4
0
 public GreetingController(IGreetingFactory _greetingFactory)
 {
     greetingFactory = _greetingFactory;
 }