Example #1
0
 public ValuesController(
     IEndpointDetailsService deetsService,
     IOptions <Service1Options> service2Options)
 {
     this.deetsService    = deetsService;
     this.service1Options = service2Options.Value;
 }
Example #2
0
 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));
 }