How do I pass custom parameter / callback to httpResponse?
hanjung
✭
HttpRequest.Callback only accept HttpRequestCallback delegate which looks like
void OnHttpResponse(IHttpResponse response, object userState).
If I want to pass custom parameter or callback with different method signature, what is the best way to do?
void OnHttpResponse(IHttpResponse response, object userState).
If I want to pass custom parameter or callback with different method signature, what is the best way to do?
0
Comments
-
request.Callback = (response, userState)=>
{
//here method you need to call with all parameters and so on
}
best,
ilya1