WebServiceClient Constructor |
Constructor for minFraud web service client.
Namespace:
MaxMind.MinFraud
Assembly:
MaxMind.MinFraud (in MaxMind.MinFraud.dll) Version: 2.0.0
Syntaxpublic WebServiceClient(
int accountId,
string licenseKey,
IEnumerable<string> locales = null,
string host = "minfraud.maxmind.com",
Nullable<TimeSpan> timeout = null,
HttpMessageHandler httpMessageHandler = null
)
Public Sub New (
accountId As Integer,
licenseKey As String,
Optional locales As IEnumerable(Of String) = Nothing,
Optional host As String = "minfraud.maxmind.com",
Optional timeout As Nullable(Of TimeSpan) = Nothing,
Optional httpMessageHandler As HttpMessageHandler = Nothing
)
public:
WebServiceClient(
int accountId,
String^ licenseKey,
IEnumerable<String^>^ locales = nullptr,
String^ host = L"minfraud.maxmind.com",
Nullable<TimeSpan> timeout = nullptr,
HttpMessageHandler^ httpMessageHandler = nullptr
)
new :
accountId : int *
licenseKey : string *
?locales : IEnumerable<string> *
?host : string *
?timeout : Nullable<TimeSpan> *
?httpMessageHandler : HttpMessageHandler
(* Defaults:
let _locales = defaultArg locales null
let _host = defaultArg host "minfraud.maxmind.com"
let _timeout = defaultArg timeout null
let _httpMessageHandler = defaultArg httpMessageHandler null
*)
-> WebServiceClient
Parameters
- accountId
- Type: SystemInt32
Your MaxMind account ID. - licenseKey
- Type: SystemString
Your MaxMind license key. - locales (Optional)
- Type: System.Collections.GenericIEnumerableString
A list of locale codes to use for name property. - host (Optional)
- Type: SystemString
The host to use when connecting to the web service. - timeout (Optional)
- Type: SystemNullableTimeSpan
The timeout to use for the request. - httpMessageHandler (Optional)
- Type: System.Net.HttpHttpMessageHandler
Handler to use in request. For unit testing only.
See Also