コード例 #1
0
        public override DISIngestionClient Build()
        {
            var disConfig = new DISConfig();

            if (null != _credentials)
            {
                disConfig.Credentials = _credentials;
            }
            if (!string.IsNullOrEmpty(_ak))
            {
                disConfig.SetAK(_ak);
            }
            if (!string.IsNullOrEmpty(_sk))
            {
                disConfig.SetSK(_sk);
            }
            if (!string.IsNullOrEmpty(_projectId))
            {
                disConfig.SetProjectId(_projectId);
            }
            if (!string.IsNullOrEmpty(_region))
            {
                disConfig.SetRegion(_region);
            }
            if (!string.IsNullOrEmpty(_endpoint))
            {
                disConfig.SetEndpoint(_endpoint);
            }
            disConfig.SetDataEncryptEnabled(_dataEncryptEnabled);
            disConfig.SetDefaultClientCertAuthEnabled(_defaultClientCertAuthEnabled);

            return(new DISIngestionClient(disConfig));
        }