mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Feature/netcore preparation (#2035)
* Move to use package reference for restoring nuget packages. * Return a task result for this async method. * Update to a supported version of the .NET Framework. This also has the side effect of allowing us to automatically generate our binding redirects on build. * Set the solution to target VS2017 * Update test solution csproj file to support being built through MSBuild 15 * Move to use package reference for restoring nuget packages. * Return a task result for this async method. * Update to a supported version of the .NET Framework. This also has the side effect of allowing us to automatically generate our binding redirects on build. * Set the solution to target VS2017 * Update test solution csproj file to support being built through MSBuild 15 * DateTimeRoutines does not have Nuget packages that support .NET Standard (and therefore .NET Core). We will have to include them for now until we can get rid of this dependency. * Move the interfaces into their own files. This will be useful when we share them between the .NET Core and .NET Framework WebAPI * Stage services that need to point to the new interface namespace. * Update CurlSharp to fix memory leak issue and support better runtime compatibility with OSX and Linux * Start spliting some interfaces into their own files - this will help by allowing us to split them out in the future into a seperate project so the actual implementations can stay within their respective architectures when required
This commit is contained in:

committed by
flightlevel

parent
7829643104
commit
8a6b9d4de7
46
src/CurlSharp/Enums/CurlMultiOption.cs
Normal file
46
src/CurlSharp/Enums/CurlMultiOption.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
//
|
||||
// Copyright (c) 2017, Dr. Masroor Ehsan. All rights reserved.
|
||||
//
|
||||
// $Id:$
|
||||
//
|
||||
// Last modified: 25.01.2017 1:29 AM
|
||||
//
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
|
||||
namespace CurlSharp
|
||||
{
|
||||
public enum CurlMultiOption
|
||||
{
|
||||
/* This is the socket callback function pointer */
|
||||
SocketFunction = CurlOptType.FunctionPoint + 1,
|
||||
/* This is the argument passed to the socket callback */
|
||||
SocketData = CurlOptType.ObjectPoint + 2,
|
||||
/* set to 1 to enable pipelining for this multi handle */
|
||||
Pipelining = CurlOptType.Long + 3,
|
||||
/* This is the timer callback function pointer */
|
||||
TimerFunction = CurlOptType.FunctionPoint + 4,
|
||||
/* This is the argument passed to the timer callback */
|
||||
TimerDate = CurlOptType.ObjectPoint + 5,
|
||||
/* maximum number of entries in the connection cache */
|
||||
MaxConnects = CurlOptType.Long + 6,
|
||||
/* maximum number of (pipelining) connections to one host */
|
||||
MaxHostConnections = CurlOptType.Long + 7,
|
||||
/* maximum number of requests in a pipeline */
|
||||
MaxPipelineLength = CurlOptType.Long + 8,
|
||||
/* a connection with a content-length longer than this will not be considered for pipelining */
|
||||
ContentLengthPenaltySize = CurlOptType.Offset + 9,
|
||||
/* a connection with a chunk length longer than this will not be considered for pipelining */
|
||||
ChunkLengthPenaltySize = CurlOptType.Offset + 10,
|
||||
/* a list of site names(+port) that are blacklisted from pipelining */
|
||||
PipeliningSiteBlackList = CurlOptType.ObjectPoint + 11,
|
||||
/* a list of server types that are blacklisted from pipelining */
|
||||
PipeliningServerBlackList = CurlOptType.ObjectPoint + 12,
|
||||
/* maximum number of open connections in total */
|
||||
MaxTotalConnections = CurlOptType.Long + 13,
|
||||
/* This is the server push callback function pointer */
|
||||
PushFunction = CurlOptType.FunctionPoint + 14,
|
||||
/* This is the argument passed to the server push callback */
|
||||
PushData = CurlOptType.ObjectPoint + 15
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user