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