public NetSuiteConfig(NetSuiteCredentials credentials, ThrottlingOptions throttlingOptions, NetworkOptions networkOptions) { Condition.Requires(credentials, "credentials").IsNotNull(); Condition.Requires(throttlingOptions, "throttlingOptions").IsNotNull(); Condition.Requires(networkOptions, "networkOptions").IsNotNull(); this.Credentials = credentials; this.ThrottlingOptions = throttlingOptions; this.NetworkOptions = networkOptions; this.ApiBaseUrl = string.Format("https://{0}.suitetalk.api.netsuite.com", credentials.CustomerId); this.SearchRecordsPageSize = 100; this.SearchPurchaseOrdersPageSize = 50; }
public NetSuiteConfig(NetSuiteCredentials credentials) : this(credentials, ThrottlingOptions.NetSuiteDefaultThrottlingOptions, NetworkOptions.NetSuiteDefaultNetworkOptions) { }