2019-01-13 21:01:16 +01:00
|
|
|
using System;
|
2018-12-28 00:27:57 +01:00
|
|
|
using MediaBrowser.Model.Services;
|
2019-02-27 14:23:39 +01:00
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
using Microsoft.AspNetCore.Http.Internal;
|
2018-12-28 00:27:57 +01:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Net
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Class WebSocketConnectEventArgs
|
|
|
|
/// </summary>
|
|
|
|
public class WebSocketConnectingEventArgs : EventArgs
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the URL.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The URL.</value>
|
|
|
|
public string Url { get; set; }
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the endpoint.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The endpoint.</value>
|
|
|
|
public string Endpoint { get; set; }
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the query string.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The query string.</value>
|
2019-02-27 14:23:39 +01:00
|
|
|
public IQueryCollection QueryString { get; set; }
|
2018-12-28 00:27:57 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether [allow connection].
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if [allow connection]; otherwise, <c>false</c>.</value>
|
|
|
|
public bool AllowConnection { get; set; }
|
|
|
|
|
|
|
|
public WebSocketConnectingEventArgs()
|
|
|
|
{
|
2019-02-27 14:23:39 +01:00
|
|
|
QueryString = new QueryCollection();
|
2018-12-28 00:27:57 +01:00
|
|
|
AllowConnection = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|