Example #1
0
        public override IAsyncResult BeginGetRequestStream(AsyncCallback callback, object state)
        {
            var ar = new MockAsyncResult(callback, state);

            ThreadPool.RunAsync(
                delegate
            {
                this.requestStream = new MockNetworkStream();
                ar.Complete(false);
            });

            return(ar);
        }
        public override IAsyncResult BeginGetRequestStream(AsyncCallback callback, object state)
        {
            var ar = new MockAsyncResult(callback, state);
            ThreadPool.RunAsync(
                delegate
                    {
                        this.requestStream = new MockNetworkStream();
                        ar.Complete(false);
                    });

            return ar;
        }