2
0

WebSocketConnectEventArgs.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using MediaBrowser.Model.Services;
  3. namespace MediaBrowser.Controller.Net
  4. {
  5. /// <summary>
  6. /// Class WebSocketConnectEventArgs
  7. /// </summary>
  8. public class WebSocketConnectingEventArgs : EventArgs
  9. {
  10. /// <summary>
  11. /// Gets or sets the URL.
  12. /// </summary>
  13. /// <value>The URL.</value>
  14. public string Url { get; set; }
  15. /// <summary>
  16. /// Gets or sets the endpoint.
  17. /// </summary>
  18. /// <value>The endpoint.</value>
  19. public string Endpoint { get; set; }
  20. /// <summary>
  21. /// Gets or sets the query string.
  22. /// </summary>
  23. /// <value>The query string.</value>
  24. public QueryParamCollection QueryString { get; set; }
  25. /// <summary>
  26. /// Gets or sets a value indicating whether [allow connection].
  27. /// </summary>
  28. /// <value><c>true</c> if [allow connection]; otherwise, <c>false</c>.</value>
  29. public bool AllowConnection { get; set; }
  30. public WebSocketConnectingEventArgs()
  31. {
  32. QueryString = new QueryParamCollection();
  33. AllowConnection = true;
  34. }
  35. }
  36. }