Exemple #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;
 }
Exemple #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));
 }