// Copyright © 2019 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp.Callback
{
///
/// Callback for asynchronous continuation of .
///
public interface IResourceReadCallback : IDisposable
{
///
/// Callback for asynchronous continuation of . If bytesRead == 0
/// the response will be considered complete.
///
///
/// If bytesRead == 0 the response will be considered complete.
/// If bytesRead > 0 then will be called again until the request is complete (based on either the
/// result or the expected content length). If bytesRead < 0 then the
/// request will fail and the bytesRead value will be treated as the error
/// code.
///
void Continue(int bytesRead);
///
/// Gets a value indicating whether the callback has been disposed of.
///
bool IsDisposed { get; }
}
}