public SimpleFuture Execute <T> (AsyncHttpRequest req, IAsyncParser parser, Action <Exception, IAsyncHttpResponse, T> onCompleted, Action <IAsyncHttpResponse> onConnect = null, Action <IAsyncHttpResponse, long, long> onProgress = null) where T : class, IJavaObject { return(Execute(req, parser, new RequestCallback <T> (onConnect, onProgress, onCompleted))); }
public Task <T> ExecuteAsync <T> (AsyncHttpRequest req, IAsyncParser parser, CancellationToken token = default(CancellationToken)) where T : class, IJavaObject { return(Execute(req, parser, (IRequestCallback)null).AsTask <T> (token)); }