mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-19 08:36:37 +00:00
More warnings (removed)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
namespace MediaBrowser.Common.Net
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -8,10 +9,21 @@ using Microsoft.Net.Http.Headers;
|
||||
namespace MediaBrowser.Common.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Class HttpRequestOptions
|
||||
/// Class HttpRequestOptions.
|
||||
/// </summary>
|
||||
public class HttpRequestOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="HttpRequestOptions"/> class.
|
||||
/// </summary>
|
||||
public HttpRequestOptions()
|
||||
{
|
||||
RequestHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
CacheMode = CacheMode.None;
|
||||
DecompressionMethod = CompressionMethod.Deflate;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the URL.
|
||||
/// </summary>
|
||||
@@ -71,14 +83,17 @@ namespace MediaBrowser.Common.Net
|
||||
public string RequestContentType { get; set; }
|
||||
|
||||
public string RequestContent { get; set; }
|
||||
|
||||
public byte[] RequestContentBytes { get; set; }
|
||||
|
||||
public bool BufferContent { get; set; }
|
||||
|
||||
public bool LogErrorResponseBody { get; set; }
|
||||
|
||||
public bool EnableKeepAlive { get; set; }
|
||||
|
||||
public CacheMode CacheMode { get; set; }
|
||||
|
||||
public TimeSpan CacheLength { get; set; }
|
||||
|
||||
public bool EnableDefaultUserAgent { get; set; }
|
||||
@@ -89,17 +104,6 @@ namespace MediaBrowser.Common.Net
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="HttpRequestOptions"/> class.
|
||||
/// </summary>
|
||||
public HttpRequestOptions()
|
||||
{
|
||||
RequestHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
CacheMode = CacheMode.None;
|
||||
DecompressionMethod = CompressionMethod.Deflate;
|
||||
}
|
||||
}
|
||||
|
||||
public enum CacheMode
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
@@ -8,10 +6,25 @@ using System.Net.Http.Headers;
|
||||
namespace MediaBrowser.Common.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Class HttpResponseInfo
|
||||
/// Class HttpResponseInfo.
|
||||
/// </summary>
|
||||
public class HttpResponseInfo : IDisposable
|
||||
{
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
public HttpResponseInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public HttpResponseInfo(HttpResponseHeaders headers, HttpContentHeaders contentHeader)
|
||||
{
|
||||
Headers = headers;
|
||||
ContentHeaders = contentHeader;
|
||||
}
|
||||
|
||||
#pragma warning restore CS1591
|
||||
#pragma warning restore SA1600
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the content.
|
||||
/// </summary>
|
||||
@@ -60,21 +73,10 @@ namespace MediaBrowser.Common.Net
|
||||
/// <value>The content headers.</value>
|
||||
public HttpContentHeaders ContentHeaders { get; set; }
|
||||
|
||||
public HttpResponseInfo()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public HttpResponseInfo(HttpResponseHeaders headers, HttpContentHeaders contentHeader)
|
||||
{
|
||||
Headers = headers;
|
||||
ContentHeaders = contentHeader;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void Dispose()
|
||||
{
|
||||
// Only IDisposable for backwards compatibility
|
||||
// backwards compatibility
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MediaBrowser.Common.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface IHttpClient
|
||||
/// Interface IHttpClient.
|
||||
/// </summary>
|
||||
public interface IHttpClient
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -11,20 +12,20 @@ namespace MediaBrowser.Common.Net
|
||||
{
|
||||
event EventHandler NetworkChanged;
|
||||
|
||||
Func<string[]> LocalSubnetsFn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a random port number that is currently available
|
||||
/// Gets a random port number that is currently available.
|
||||
/// </summary>
|
||||
/// <returns>System.Int32.</returns>
|
||||
int GetRandomUnusedTcpPort();
|
||||
|
||||
int GetRandomUnusedUdpPort();
|
||||
|
||||
Func<string[]> LocalSubnetsFn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns MAC Address from first Network Card in Computer
|
||||
/// Returns the MAC Address from first Network Card in Computer.
|
||||
/// </summary>
|
||||
/// <returns>[string] MAC Address</returns>
|
||||
/// <returns>The MAC Address.</returns>
|
||||
List<PhysicalAddress> GetMacAddresses();
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user