public NuLuSApiClientAsync(QueryChannel queryChannel) { switch (queryChannel) { case QueryChannel.DnsEnum: _client = new NuLuSDnsEnumApiClientAsync(); break; case QueryChannel.HttpRest: _client = new NuLuSHttpRestApiClientAsync(); break; default: throw new ArgumentOutOfRangeException(nameof(queryChannel)); } }
public NuLuSApiClientAsync(QueryChannel queryChannel) { switch (queryChannel) { case QueryChannel.DnsEnum: _client = new NuLuSDnsEnumApiClientAsync(); break; case QueryChannel.HttpRest: _client = new NuLuSHttpRestApiClientAsync(); break; default: throw new ArgumentOutOfRangeException(nameof(queryChannel)); } }