AmazonMWS1.MarketplaceWebServiceProductsConfig.SetUserAgent C# (CSharp) Method

SetUserAgent() public method

public SetUserAgent ( String applicationName, String applicationVersion ) : void
applicationName String
applicationVersion String
return void
        public void SetUserAgent(String applicationName, String applicationVersion)
        {
            this.ConfigureUserAgentHeader(applicationName, applicationVersion);
        }

Usage Example

コード例 #1
0
 /// <summary>
 /// Constructs MarketplaceWebServiceProductsClient with AWS Access Key ID and AWS Secret Key
 /// </summary>
 /// <param name="applicationName">Your application's name, e.g. "MyMWSApp"</param>
 /// <param name="applicationVersion">Your application's version, e.g. "1.0"</param>
 /// <param name="awsAccessKeyId">AWS Access Key ID</param>
 /// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
 /// <param name="config">configuration</param>
 public MarketplaceWebServiceProductsClient(
     String applicationName,
     String applicationVersion,
     String awsAccessKeyId,
     String awsSecretAccessKey,
     MarketplaceWebServiceProductsConfig config)
 {
     this.awsAccessKeyId     = awsAccessKeyId;
     this.awsSecretAccessKey = awsSecretAccessKey;
     this.config             = config;
     ServicePointManager.Expect100Continue = false;
     ServicePointManager.UseNagleAlgorithm = false;
     config.SetUserAgent(applicationName, applicationVersion);
 }