mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
#pragma warning disable CS1591
 | 
						|
 | 
						|
using System;
 | 
						|
using System.Threading;
 | 
						|
using System.Threading.Tasks;
 | 
						|
using Emby.Server.Implementations.Net;
 | 
						|
using MediaBrowser.Model.Services;
 | 
						|
using Microsoft.AspNetCore.Http;
 | 
						|
 | 
						|
namespace Emby.Server.Implementations.HttpServer
 | 
						|
{
 | 
						|
    public interface IHttpListener : IDisposable
 | 
						|
    {
 | 
						|
        /// <summary>
 | 
						|
        /// Gets or sets the error handler.
 | 
						|
        /// </summary>
 | 
						|
        /// <value>The error handler.</value>
 | 
						|
        Func<Exception, IRequest, bool, bool, Task> ErrorHandler { get; set; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Gets or sets the request handler.
 | 
						|
        /// </summary>
 | 
						|
        /// <value>The request handler.</value>
 | 
						|
        Func<IHttpRequest, string, string, string, CancellationToken, Task> RequestHandler { get; set; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Gets or sets the web socket handler.
 | 
						|
        /// </summary>
 | 
						|
        /// <value>The web socket handler.</value>
 | 
						|
        Action<WebSocketConnectEventArgs> WebSocketConnected { get; set; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// Stops this instance.
 | 
						|
        /// </summary>
 | 
						|
        Task Stop();
 | 
						|
 | 
						|
        Task ProcessWebSocketRequest(HttpContext ctx);
 | 
						|
    }
 | 
						|
}
 |