2
0

IHttpServer.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Services;
  4. using MediaBrowser.Model.Events;
  5. namespace MediaBrowser.Controller.Net
  6. {
  7. /// <summary>
  8. /// Interface IHttpServer
  9. /// </summary>
  10. public interface IHttpServer : IDisposable
  11. {
  12. /// <summary>
  13. /// Gets the URL prefix.
  14. /// </summary>
  15. /// <value>The URL prefix.</value>
  16. string[] UrlPrefixes { get; }
  17. /// <summary>
  18. /// Stops this instance.
  19. /// </summary>
  20. void Stop();
  21. /// <summary>
  22. /// Occurs when [web socket connected].
  23. /// </summary>
  24. event EventHandler<GenericEventArgs<IWebSocketConnection>> WebSocketConnected;
  25. /// <summary>
  26. /// Inits this instance.
  27. /// </summary>
  28. void Init(IEnumerable<IService> services, IEnumerable<IWebSocketListener> listener);
  29. /// <summary>
  30. /// If set, all requests will respond with this message
  31. /// </summary>
  32. string GlobalResponse { get; set; }
  33. }
  34. }