public HomeController(ILogger <HomeController> logger, IGreetingsService greetingsService, IGuestResponseService guestResponseService, IGiftService giftService) { _logger = logger; _greetingsService = greetingsService; _guestResponseService = guestResponseService; _giftService = giftService; }
public SayHello(IGreetingsService greetingsService) { this._greetingsService = greetingsService; }
//Do not delete because it is necessary to build the container public GreetingsController() { service = new GreetingsService(); }
public AppService() { _greetingsService = new GreetingsService(); //_greetingsService = new GreetingsService2(); }
public GreetingsController(IGreetingsService greetingsService) { _greetingsService = greetingsService; }
public AzureFunctionV2(IGreetingsService greetingsService) { _greetingsService = greetingsService; }
public SimpleApplication(IGreetingsService greetingsService, IThankingService thankingService) { this.greetingsService = greetingsService; this.thankingService = thankingService; }
public HomeController(IGreetingsService greetingsService) { _greetingsService = greetingsService ?? throw new ArgumentNullException(nameof(greetingsService)); }