/// <summary> /// Create client. /// </summary> /// <param name="accessKey">Access Key</param> /// <param name="secretKey">Secret Key</param> /// <param name="config">configuration</param> public MWSCustomerServiceClient(String accessKey, String secretKey, MWSCustomerServiceConfig config) { this.connection = config.CopyConnection(); this.connection.AwsAccessKeyId = accessKey; this.connection.AwsSecretKeyId = secretKey; this.connection.LibraryVersion = libraryVersion; this.servicePath = config.ServicePath; }
/// <summary> /// Create client. /// </summary> /// <param name="accessKey">Access Key</param> /// <param name="secretKey">Secret Key</param> /// <param name="applicationName">Application Name</param> /// <param name="applicationVersion">Application Version</param> /// <param name="config">configuration</param> public MWSCustomerServiceClient( string accessKey, string secretKey, string applicationName, string applicationVersion, MWSCustomerServiceConfig config) { this.connection = config.CopyConnection(); this.connection.AwsAccessKeyId = accessKey; this.connection.AwsSecretKeyId = secretKey; this.connection.ApplicationName = applicationName; this.connection.ApplicationVersion = applicationVersion; this.connection.LibraryVersion = libraryVersion; this.servicePath = config.ServicePath; }
/// <summary> /// Added to initialize service without too much changes in original code . /// </summary> /// <param name="accessKey">The access key.</param> /// <param name="secretKey">The secret key.</param> /// <param name="applicationName">Name of the application.</param> /// <param name="applicationVersion">The application version.</param> public void Init(string accessKey, string secretKey, string applicationName, string applicationVersion) { var config = new MWSCustomerServiceConfig(); this.connection = config.CopyConnection(); this.connection.AwsAccessKeyId = accessKey; this.connection.AwsSecretKeyId = secretKey; this.connection.ApplicationName = applicationName; this.connection.ApplicationVersion = applicationVersion; this.connection.LibraryVersion = libraryVersion; this.servicePath = config.ServicePath; }