using System;
using System.Threading;
using System.Threading.Tasks;
using Emby.Server.Implementations.Net;
using MediaBrowser.Model.Services;
using Microsoft.AspNetCore.Http;
namespace Emby.Server.Implementations.HttpServer
{
public interface IHttpListener : IDisposable
{
///
/// Gets or sets the error handler.
///
/// The error handler.
Func 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 WebSocketConnected { get; set; }
///
/// Stops this instance.
///
Task Stop();
Task ProcessWebSocketRequest(HttpContext ctx);
}
}