public LifetimeServicesController(ILogger <LifetimeServicesController> logger, IConfiguration Configuration, IOptions <ApplicationSettings> applicationSettings, ISampleTransientService sampleTransientService, ISampleSingletonService sampleSingletonService, ISampleScopedService sampleScopedService) { _logger = logger; _config = Configuration; _applicationSettings = applicationSettings.Value; _sampleTransientService = sampleTransientService; _sampleSingletonService = sampleSingletonService; _sampleScopedService = sampleScopedService; }
public ResourceModule(IApplicationService applicationService, ISampleTransientService transientService) { // would capture routes to /products/list sent as a GET request Get["/"] = parameters => new { ApplicationService = applicationService.GetContextBirthday(), TransientService = transientService.GetTransientServiceBirthday() }; }