private void CheckApiKey() { if (ApiKey == null || ApiKey.Length == 0) throw new ApiKeyRequiredException(); }