This commit is contained in:
2021-08-30 22:42:24 +00:00
parent 2718bebe38
commit dddc1ac7f9
4 changed files with 50 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ namespace AyaNova.PlugIn.V8
public const string API_BASE_ROUTE = "api/v8/";
private const int MAX_TRIES = 3;//max times to retry an api call before giving up
private const int API_RETRY_DELAY = 3000;//pause in ms before retrying api call
private const int HTTPCLIENT_TIMEOUT_SECONDS = 1200;//default for all ops, normally 100seconds but would kill large file uploads
public static int HTTPCLIENT_TIMEOUT_SECONDS = 30;//default for all ops, normally 100seconds but would kill large file uploads
public static HttpClient client = null;
//url once known to be good
internal static string ApiBaseUrl { get; set; }
@@ -40,7 +40,7 @@ namespace AyaNova.PlugIn.V8
#region INIT / AUTH
private static void InitClient()
public static void InitClient()
{
if (client != null)
{