public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentialsProvider credentialsProvider) {this.clientProfile = profile;this.credentialsProvider = credentialsProvider;this.clientProfile.setCredentialsProvider(this.credentialsProvider);this.httpClient = HttpClientFactory.buildClient(this.clientProfile);this.endpointResolver = new DefaultEndpointResolver(this, profile);this.appendUserAgent("HTTPClient", this.httpClient.getClass().getSimpleName());}
public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentialsProvider credentialsProvider) : this(){clientProfile = profile;this.credentialsProvider = credentialsProvider;clientProfile.SetCredentialsProvider(this.credentialsProvider);}