public ValuesController( IEndpointDetailsService deetsService, IOptions <Service1Options> service2Options) { this.deetsService = deetsService; this.service1Options = service2Options.Value; }
public ValuesController(IEndpointDetailsService endpointDetailsService) { this.endpointDetailsService = endpointDetailsService ?? throw new ArgumentNullException(nameof(endpointDetailsService)); }
public HomeController(IEndpointDetailsService endpointDetailsService, ICallApiService callApiService) { this.endpointDetailsService = endpointDetailsService ?? throw new ArgumentNullException(nameof(endpointDetailsService)); this.callApiService = callApiService ?? throw new ArgumentNullException(nameof(callApiService)); }