This commit is contained in:
2020-07-06 21:22:34 +00:00
parent c1a064d14a
commit e84b5b6bd5
2 changed files with 91 additions and 96 deletions

View File

@@ -6,7 +6,7 @@ using System.Runtime.InteropServices;
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("AyaNova.PlugIn.V8")] [assembly: AssemblyTitle("AyaNova.PlugIn.V8")]
[assembly: AssemblyDescription("V8 export plugin for AyaNova")] [assembly: AssemblyDescription("V8 migrate plugin for AyaNova")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Ground Zero Tech-Works Inc.")] [assembly: AssemblyCompany("Ground Zero Tech-Works Inc.")]
[assembly: AssemblyProduct("AyaNova.PlugIn.V8")] [assembly: AssemblyProduct("AyaNova.PlugIn.V8")]

View File

@@ -19,7 +19,7 @@ namespace AyaNova.PlugIn.V8
public static string PRE_RELEASE_VERSION_STRING { get; set; } public static string PRE_RELEASE_VERSION_STRING { get; set; }
public static GZTW.AyaNova.BLL.LocalizedTextTable LocaleText = null; public static GZTW.AyaNova.BLL.LocalizedTextTable LocaleText = null;
const string TEST_ROUTE = "ServerInfo"; const string TEST_ROUTE = "notify/hello";
const string API_BASE_ROUTE = "api/v8/"; const string API_BASE_ROUTE = "api/v8/";
static HttpClient client = new HttpClient(); static HttpClient client = new HttpClient();
//url once known to be good //url once known to be good
@@ -76,14 +76,9 @@ namespace AyaNova.PlugIn.V8
{ {
HttpResponseMessage response = await client.GetAsync(serverUrl + TEST_ROUTE); HttpResponseMessage response = await client.GetAsync(serverUrl + TEST_ROUTE);
if (response.IsSuccessStatusCode) if (response.IsSuccessStatusCode)
{
var ret = await response.Content.ReadAsStringAsync();
if (ret.Contains("AyaNova"))
{ {
ApiBaseUrl = serverUrl; ApiBaseUrl = serverUrl;
return "OK"; return "OK";
}
} }
else else
{ {
@@ -93,7 +88,7 @@ namespace AyaNova.PlugIn.V8
catch { return "Failed"; } catch { return "Failed"; }
return "failed"; // return "failed";
} }