public void ChallengeClient(IHttpClient client, Action <bool, HttpContext> onCompletion) { httpClient = client; reader = new HttpStreamReader(client.Stream); reader.Subscribe(this); callback = onCompletion; reader = HttpStreamReader.StartNew(httpClient.Stream, this); httpClient.Stream.BeginWrite(challenge, 0, challenge.Length, FinishedChallenge, httpClient.Stream); }
public void ChallengeClient(IHttpClient client, Action <bool, HttpContext> onCompletion) { httpClient = client; reader = HttpStreamReader.StartNew(client.Stream, this); callback = onCompletion; }