From 2e4db7554041ecf481d3a38656fccc309e13eb5b Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Sat, 23 Feb 2013 17:31:51 -0500 Subject: extracted http server, web socket server and udp server dependancies --- MediaBrowser.Common/Net/IHttpServer.cs | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 MediaBrowser.Common/Net/IHttpServer.cs (limited to 'MediaBrowser.Common/Net/IHttpServer.cs') diff --git a/MediaBrowser.Common/Net/IHttpServer.cs b/MediaBrowser.Common/Net/IHttpServer.cs new file mode 100644 index 000000000..a640fb262 --- /dev/null +++ b/MediaBrowser.Common/Net/IHttpServer.cs @@ -0,0 +1,44 @@ +using System; + +namespace MediaBrowser.Common.Net +{ + /// + /// Interface IHttpServer + /// + public interface IHttpServer : IDisposable + { + /// + /// Gets the URL prefix. + /// + /// The URL prefix. + string UrlPrefix { get; } + + /// + /// Starts the specified server name. + /// + /// The URL. + void Start(string urlPrefix); + + /// + /// Gets a value indicating whether [supports web sockets]. + /// + /// true if [supports web sockets]; otherwise, false. + bool SupportsWebSockets { get; } + + /// + /// Stops this instance. + /// + void Stop(); + + /// + /// Gets or sets a value indicating whether [enable HTTP request logging]. + /// + /// true if [enable HTTP request logging]; otherwise, false. + bool EnableHttpRequestLogging { get; set; } + + /// + /// Occurs when [web socket connected]. + /// + event EventHandler WebSocketConnected; + } +} \ No newline at end of file -- cgit v1.2.3