Ejemplo n.º 1
0
        internal Stream EndGetContentStream(IAsyncResult result)
        {
            object o = MultiAsyncResult.End(result);

            if (o is Exception)
            {
                throw (Exception)o;
            }
            return((Stream)o);
        }
Ejemplo n.º 2
0
        internal static Stream EndGetContentStream(IAsyncResult result)
        {
            object o = MultiAsyncResult.End(result) !;

            if (o is Exception e)
            {
                ExceptionDispatchInfo.Throw(e);
            }
            return((Stream)o);
        }
Ejemplo n.º 3
0
        internal override Stream EndGetContentStream(IAsyncResult result)
        {
            object obj2 = MultiAsyncResult.End(result);

            if (obj2 is Exception)
            {
                throw ((Exception)obj2);
            }
            return((Stream)obj2);
        }
Ejemplo n.º 4
0
        internal void EndClose(IAsyncResult result)
        {
            MultiAsyncResult.End(result);

            this.stream.Close();
        }