WebSocketConnectEventArgs.cs 1.2 KB

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