protected override bool GetNextProxy(out Uri proxy) { if (m_CurrentIndex < 0) { proxy = null; return(false); } if (m_CurrentIndex == 0) { AutoWebProxyState state; m_ScriptProxies = m_Proxy.GetProxiesAuto(Destination, out state, ref m_SyncStatus); if (state != AutoWebProxyState.ExecutionSuccess) { m_ScriptProxies = null; } } if (m_ScriptProxies == null || m_CurrentIndex >= m_ScriptProxies.Length) { proxy = m_Proxy.GetProxyAutoFailover(Destination); m_CurrentIndex = -1; return(true); } proxy = m_ScriptProxies[m_CurrentIndex++]; return(true); }
protected override bool GetNextProxy(out Uri proxy) { if (m_CurrentIndex < 0) { proxy = null; return(false); } if (m_CurrentIndex == 0) { m_ScriptProxies = m_Proxy.GetProxiesAuto(Destination, ref m_SyncStatus); } if (m_ScriptProxies == null || m_CurrentIndex >= m_ScriptProxies.Length) { proxy = m_Proxy.GetProxyAutoFailover(Destination); m_CurrentIndex = -1; return(true); } proxy = m_ScriptProxies[m_CurrentIndex++]; return(true); }