using System.Threading.Tasks; using MediaBrowser.Common.Net; using ServiceStack.Web; using System; using System.Collections.Generic; namespace MediaBrowser.Server.Implementations.HttpServer { public interface IHttpListener : IDisposable { IEnumerable LocalEndPoints { get; } /// /// Gets or sets the error handler. /// /// The error handler. Action ErrorHandler { get; set; } /// /// Gets or sets the request handler. /// /// The request handler. Func RequestHandler { get; set; } /// /// Gets or sets the web socket handler. /// /// The web socket handler. Action WebSocketHandler { get; set; } /// /// Starts this instance. /// /// The URL prefixes. void Start(IEnumerable urlPrefixes); /// /// Stops this instance. /// void Stop(); } }