MaxMind.MinFraud : MaxMind.MinFraud Namespace

WebServiceClient Class

Client for querying the minFraud Score and Insights web services.

Syntax

public sealed class WebServiceClient : IDisposable

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.MinFraud
Assembly: MaxMind.MinFraud (in MaxMind.MinFraud.dll)
Assembly Versions: 0.6.0.0

Members

See Also: Inherited members from object.

Public Constructors

Public Methods

Dispose ()
Dispose of the underlying HttpClient.
FactorsAsync (MaxMind.MinFraud.Request.Transaction) : System.Threading.Tasks.Task<MaxMind.MinFraud.Response.Insights>
Asynchronously query Factors endpoint with transaction data
InsightsAsync (MaxMind.MinFraud.Request.Transaction) : System.Threading.Tasks.Task<MaxMind.MinFraud.Response.Insights>
Asynchronously query Insights endpoint with transaction data
ScoreAsync (MaxMind.MinFraud.Request.Transaction) : System.Threading.Tasks.Task<MaxMind.MinFraud.Response.Score>
Asynchronously query Score endpoint with transaction data

Member Details

WebServiceClient Constructor

Constructor for minFraud web service client.

Syntax

public WebServiceClient (int userId, string licenseKey, IEnumerable<string> locales, string host, Nullable<TimeSpan> timeout, System.Net.Http.HttpMessageHandler httpMessageHandler)

Parameters

userId
Your MaxMind user ID.
licenseKey
Your MaxMind license key.
locales
A list of locale codes to use for name property.
host
The host to use when connecting to the web service.
timeout
The timeout to use for the request.
httpMessageHandler
Handler to use in request. For unit testing only.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.MinFraud
Assembly: MaxMind.MinFraud (in MaxMind.MinFraud.dll)
Assembly Versions: 0.6.0.0

Dispose Method

Dispose of the underlying HttpClient.

Syntax

public void Dispose ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.MinFraud
Assembly: MaxMind.MinFraud (in MaxMind.MinFraud.dll)
Assembly Versions: 0.6.0.0

FactorsAsync Method

Asynchronously query Factors endpoint with transaction data

Syntax

[System.Runtime.CompilerServices.AsyncStateMachine(typeof(MaxMind.MinFraud.WebServiceClient/<FactorsAsync>d__7))]
public System.Threading.Tasks.Task<MaxMind.MinFraud.Response.Insights> FactorsAsync (MaxMind.MinFraud.Request.Transaction transaction)

Parameters

transaction
Object containing the transaction data to be sent to the minFraud web service.

Returns

Task that produces an object modeling the minFraud Factors response data

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.MinFraud
Assembly: MaxMind.MinFraud (in MaxMind.MinFraud.dll)
Assembly Versions: 0.6.0.0

InsightsAsync Method

Asynchronously query Insights endpoint with transaction data

Syntax

[System.Runtime.CompilerServices.AsyncStateMachine(typeof(MaxMind.MinFraud.WebServiceClient/<InsightsAsync>d__8))]
public System.Threading.Tasks.Task<MaxMind.MinFraud.Response.Insights> InsightsAsync (MaxMind.MinFraud.Request.Transaction transaction)

Parameters

transaction
Object containing the transaction data to be sent to the minFraud web service.

Returns

Task that produces an object modeling the minFraud Insights response data

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.MinFraud
Assembly: MaxMind.MinFraud (in MaxMind.MinFraud.dll)
Assembly Versions: 0.6.0.0

ScoreAsync Method

Asynchronously query Score endpoint with transaction data

Syntax

[System.Runtime.CompilerServices.AsyncStateMachine(typeof(MaxMind.MinFraud.WebServiceClient/<ScoreAsync>d__9))]
public System.Threading.Tasks.Task<MaxMind.MinFraud.Response.Score> ScoreAsync (MaxMind.MinFraud.Request.Transaction transaction)

Parameters

transaction
Object containing the transaction data to be sent to the minFraud web service.

Returns

Task that produces an object modeling the minFraud Score response data

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.MinFraud
Assembly: MaxMind.MinFraud (in MaxMind.MinFraud.dll)
Assembly Versions: 0.6.0.0