private static void PrepareForNativeClientInOptions(TencentCloudClsSinkOptions options)
        {
            if (options.HasLegalNativeConfig(false))
            {
                return;
            }

            if (options.HasLegalNativeConfig(true))
            {
                return;
            }

            options.UseNativeConfig(Constants.DefaultClient, c => {
                c.RequestUri      = options.RequestUri;
                c.SecretId        = options.SecretId;
                c.SecretKey       = options.SecretKey;
                c.TopicId         = options.TopicId;
                c.RequestTimeout  = options.RequestTimeout;
                c.IsGeneralClient = true;
            });
        }
        private static void RegisterTencentCloudClsClients(TencentCloudClsSinkOptions options)
        {
            if (!options.HasLegalNativeConfig(false))
            {
                throw new InvalidOperationException("There is no legal JD Cloud Log Service native config.");
            }

            if (options.TencentCloudClsNativeConfigs.Any())
            {
                foreach (var kvp in options.TencentCloudClsNativeConfigs)
                {
                    TencentCloudClsClientManager.SetClsClient(kvp.Key, kvp.Value);
                }
            }
            else
            {
                TencentCloudClsClientManager.SetClsClient(Constants.DefaultClient,
                                                          options.RequestUri, options.SecretId, options.SecretKey, options.TopicId, options.RequestTimeout,
                                                          true);
            }
        }