コード例 #1
0
        public override void WriteTo(OkHttp.Okio.IBufferedSink p0)
        {
            IBufferedSink bufferedSink;

            countingSink = new CountingSink(this, p0);
            bufferedSink = Okio.Buffer(countingSink);

            _body.WriteTo(bufferedSink);

            bufferedSink.Flush();
        }
コード例 #2
0
        public override void WriteTo(OkHttp.Okio.IBufferedSink p0)
        {
            try
            {
                IBufferedSink bufferedSink;
                countingSink = new CountingSink(this, p0);
                bufferedSink = Okio.Buffer(countingSink);

                _body.WriteTo(bufferedSink);

                bufferedSink.Flush();
            }
            catch (Java.IO.IOException ex)
            {
                _listener?.OnError(_tag, ex.ToString());
            }
        }