internal BalikoBotClient(Carriers carrier, IBalikoBotConfiguration config, IHttpClientFactory clientFactory) { if (config == null) { throw new ArgumentNullException(nameof(config)); } _carrier = carrier; _username = config.Username; _password = config.Password; _clientFactory = clientFactory ?? throw new ArgumentNullException(nameof(clientFactory)); }
public BalikoBotClientFactory(IBalikoBotConfiguration config, IHttpClientFactory clientFactory) { _config = config ?? throw new ArgumentNullException(nameof(config)); _clientFactory = clientFactory ?? throw new ArgumentNullException(nameof(clientFactory)); }