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