/// <summary> /// Call this method to signal the host that all the content for filtering /// has been sent, and then wait for the host to return the filtered content. /// </summary> /// <returns>A task that completes when the host has returned the filtered contet.</returns> public async Task WaitForFilterComplete() { if (SentContentToFilter) { await _injectScriptSocket.CompleteRequest(); await _injectScriptSocket.WaitForResponseComplete(); } CloseInjectScriptSocketAndBecomePassthrough(); }
async Task IHttpSocketAdapter.WaitForResponseComplete() { IHttpSocketAdapter socket = await GetConnectedSocketAsync(); await socket.WaitForResponseComplete(); }