Assembly: Veriplace.Client (in Veriplace.Client.dll) Version: 1.7.0.25986 (1.7.0.0)
Syntax
| C# |
|---|
public override LocationRequestStatus GetCallbackResult( HttpRequest request, HttpResponse response ) |
| Visual Basic (Declaration) |
|---|
Public Overrides Function GetCallbackResult ( _ request As HttpRequest, _ response As HttpResponse _ ) As LocationRequestStatus |
| Visual C++ |
|---|
public: virtual LocationRequestStatus^ GetCallbackResult( HttpRequest^ request, HttpResponse^ response ) override |
Parameters
- request
- Type: System.Web..::.HttpRequest
the current HTTP request
- response
- Type: System.Web..::.HttpResponse
the current HTTP response (see above)
Return Value
a LocationRequestStatus object
Remarks
The resulting LocationRequestStatus object will contain either a LocationId or an Exception. It will not contain the actual location details; Veriplace does not deliver those by callback, for security reasons. Instead, you can pass the location ID to GetLocationById(User, Int64, Token, LocationOptions) to get the location details.
The status object's Id property will be the same as the one returned in the original request, which you can use to associate any previously stored request state with the result.
To confirm receipt of the callback, this method also sends an immediate HTTP 200 ("OK") response to Veriplace, completing the HTTP response. Do not try to do anything else with the response object after this; if your application returned anything else, or did not respond, Veriplace would repeat the callback.
Exceptions
| Exception | Condition |
|---|---|
| Veriplace.Client..::.UnexpectedException | if the request did not contain valid parameters |