public void OnProgress(IHTTPRequest request, byte[] data, int bytesRead, int bytesReceived, int bytesExpected) { if (listener != null) { listener.OnProgress(request, data, bytesRead, bytesReceived, bytesExpected); } }
public override void OnProgress(byte[] data, int bytesRead, int bytesReceived, int bytesExpected) { IHTTPListener listener = getEffectiveListener(); if (listener != null) { UnityThreadHelper.Dispatcher.Dispatch(delegate { listener.OnProgress(this, data, bytesRead, bytesReceived, bytesExpected); }); } }
public virtual void OnProgress(byte[] data, int bytesRead, int bytesReceived, int bytesExpected) { IHTTPListener effectiveListener = getEffectiveListener(); if (effectiveListener != null) { try { effectiveListener.OnProgress(this, data, bytesRead, bytesReceived, bytesExpected); } catch (Exception exception) { Debug.LogError("A listener threw an exception."); Debug.LogException(exception); } } }
public override void perform(IHTTPListener inner) { inner.OnProgress(request, data, bytesRead, bytesReceived, bytesExpected); }