aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Net/IAsyncStreamSource.cs
blob: 7188ca973519984df6584ffe19829d01cfe39dee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System.IO;
using System.Threading.Tasks;

namespace MediaBrowser.Controller.Net
{
    /// <summary>
    /// Interface IAsyncStreamSource
    /// Enables asynchronous writing to http resonse streams
    /// </summary>
    public interface IAsyncStreamSource
    {
        /// <summary>
        /// Asynchronously write to the response stream.
        /// </summary>
        Task WriteToAsync(Stream responseStream);
    }
}