public GreetingHostedService(IGreetingAppService greetingAppService) { _greetingAppService = greetingAppService; }
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { _greetingAppService = app.ApplicationServices.GetService <IGreetingAppService>(); }
public GreetingController(IGreetingAppService greetingAppService) { this.greetingAppService = greetingAppService; }