IDownloadContentBufferAvailable.cs 909 B

123456789101112131415161718
  1. using Best.HTTP.Response;
  2. namespace Best.HTTP.Hosts.Connections
  3. {
  4. /// <summary>
  5. /// Defines an interface for notifying connections when space becomes available in a buffer for downloading data.
  6. /// Connections implementating of this interface are used to signal their internal logic that they can transfer data into the available buffer space.
  7. /// </summary>
  8. public interface IDownloadContentBufferAvailable
  9. {
  10. /// <summary>
  11. /// Notifies a connection that space has become available in the buffer for downloading data.
  12. /// When invoked, this method indicates to a connection that it can transfer additional data into the buffer for further processing.
  13. /// </summary>
  14. /// <param name="stream">The <see cref="DownloadContentStream"/> instance associated with the buffer.</param>
  15. void BufferAvailable(DownloadContentStream stream);
  16. }
  17. }