Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public void ChallengeClient(IHttpClient client, Action <bool, HttpContext> onCompletion)
 {
     httpClient = client;
     reader     = HttpStreamReader.StartNew(client.Stream, this);
     callback   = onCompletion;
 }