Пример #1
0
 public SampleFunction(MyServiceA serviceA, MyServiceB serviceB, IGlobalIdProvider globalIdProvider, IHttpClientFactory clientFactory)
 {
     _serviceA         = serviceA ?? throw new ArgumentNullException(nameof(serviceA));
     _serviceB         = serviceB ?? throw new ArgumentNullException(nameof(serviceB));
     _globalIdProvider = globalIdProvider ?? throw new ArgumentNullException(nameof(globalIdProvider));
     _clientFactory    = clientFactory;
 }
Пример #2
0
 public SampleFunction(MyServiceA serviceA, MyServiceB serviceB, IGlobalIdProvider globalIdProvider)
 {
     _serviceA         = serviceA ?? throw new ArgumentNullException(nameof(serviceA));
     _serviceB         = serviceB ?? throw new ArgumentNullException(nameof(serviceB));
     _globalIdProvider = globalIdProvider ?? throw new ArgumentNullException(nameof(globalIdProvider));
 }