Пример #1
0
 public DefaultPage(Service1 service1, Service2 service2, IExampleRequestLifelongService exampleService, Service4 service4)
 {
     this.InjectedService1 = service1;
     this.InjectedService2 = service2;
     this.exampleService   = exampleService ?? throw new ArgumentNullException(nameof(exampleService));
     this.service4         = service4 ?? throw new ArgumentNullException(nameof(service4));
 }
 public Service4(IExampleRequestLifelongService service3, IHttpContextAccessor httpContextAccessor)
 {
     this.service             = service3 ?? throw new ArgumentNullException(nameof(service3));
     this.httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
 }
Пример #3
0
 public DefaultPage(IExampleRequestLifelongService exampleService, Service4 service4)
 {
     this.exampleService = exampleService ?? throw new ArgumentNullException(nameof(exampleService));
     this.service4       = service4 ?? throw new ArgumentNullException(nameof(service4));
 }