Exemplo n.º 1
0
        public static HttpStreamReader StartNew(Stream stream, IObserver <string> observer)
        {
            var reader = new HttpStreamReader(stream);

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